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:
c3d3964
)
Change substring? to call string->nfc on its arguments.
author
Chris Hanson
<org/chris-hanson/cph>
Sun, 23 Apr 2017 04:12:59 +0000
(21:12 -0700)
committer
Chris Hanson
<org/chris-hanson/cph>
Sun, 23 Apr 2017 04:12:59 +0000
(21:12 -0700)
src/runtime/ustring.scm
patch
|
blob
|
history
diff --git
a/src/runtime/ustring.scm
b/src/runtime/ustring.scm
index 9691cf22b41189a81c8827bc9e279a71b9137752..bfbcfb55636bab4ff4a7c1988c2a3d620caab0b2 100644
(file)
--- a/
src/runtime/ustring.scm
+++ b/
src/runtime/ustring.scm
@@
-1509,7
+1509,7
@@
USA.
(define (substring? pattern text)
(and (or (fix:= 0 (string-length pattern))
- (string-search-forward
pattern text
))
+ (string-search-forward
(string->nfc pattern) (string->nfc text)
))
#t))
(define (%dumb-string-search-forward pattern pend text tstart tlast)