projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26e334f
)
In substring, only return arg string if it's in NFC.
author
Chris Hanson
<org/chris-hanson/cph>
Sun, 23 Apr 2017 04:15:24 +0000
(21:15 -0700)
committer
Chris Hanson
<org/chris-hanson/cph>
Sun, 23 Apr 2017 04:15:24 +0000
(21:15 -0700)
src/runtime/ustring.scm
patch
|
blob
|
history
diff --git
a/src/runtime/ustring.scm
b/src/runtime/ustring.scm
index bfbcfb55636bab4ff4a7c1988c2a3d620caab0b2..b84c3a5ab0fc3842f8cbc9d01e7cf6c5c18633df 100644
(file)
--- a/
src/runtime/ustring.scm
+++ b/
src/runtime/ustring.scm
@@
-387,7
+387,7
@@
USA.
(if (and (fix:= start 0)
(fix:= end len)
(not (slice? string))
- (
not (ustring-mutable? string)
))
+ (
ustring-in-nfc? string
))
string
(translate-slice string start end
(lambda (string start end)