Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repair char-foldcase for some single-character special cases #740

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mats/5_4.ms
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,8 @@
(error? (char-foldcase 'a))
(eqv? (char-foldcase #\a) #\a)
(eqv? (char-foldcase #\Z) #\z)
(eqv? (char-foldcase #\x1e9e) #\xDF)
(eqv? (char-foldcase #\x1f8d) #\x1f85)
)

(mat integer->char
Expand Down
6 changes: 3 additions & 3 deletions s/build.zuo
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@
(append (map at-source
(list "debug.ss" "primdata.ss" "layout.ss"))
(append type-srcs
cpnanopass-srcs)))
cpnanopass-srcs
unicode-srcs)))

(define other-srcs
;; files that are used to initialize the compiler
Expand Down Expand Up @@ -447,8 +448,7 @@
;; independent of whether dependencies changed:
[:target all (bootall ,@output-headers)
,void]
[:target bootall (,@all-srcs ,@(add-patchfile macro-objs) ,nanopass.so ,@type-srcs
,@cpnanopass-srcs ,@unicode-srcs)
[:target bootall (,@all-srcs ,@(add-patchfile macro-objs) ,nanopass.so)
,(lambda (token)
(mkdir-p (at-boot "."))
(run-scheme "all at once"
Expand Down
2 changes: 1 addition & 1 deletion unicode/extract-char-cases.ss
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
[offset (codes->off (caddr fields) n)])
(chardata-fcchar-set! cdrec offset)
(chardata-fcstr-set! cdrec offset))))
(filter (lambda (fields) (equal? (cadr fields) "C")) data))
(filter (lambda (fields) (member (cadr fields) '("C" "S"))) data))
(for-each
(lambda (fields)
(let ([n (hex->num (car fields))])
Expand Down
Loading