Raymond Toy pushed to branch issue-139-default-external-format-utf8 at cmucl / cmucl
Commits:
-
2fed09ce
by Raymond Toy at 2022-10-30T17:41:37-07:00
1 changed file:
Changes:
... | ... | @@ -682,7 +682,21 @@ |
682 | 682 | ;; work and not return NIL.
|
683 | 683 | (assert-true (file-author "."))
|
684 | 684 | (assert-true (file-author "bin/build.sh"))
|
685 | - (assert-true (file-author "tests/안녕하십니까.txt")))
|
|
685 | + (let ((unix::*filename-encoding* :utf-8))
|
|
686 | + ;; Set filename encoding to utf-8 so that we can encode the
|
|
687 | + ;; filename properly.
|
|
688 | + (assert-true
|
|
689 | + (file-author
|
|
690 | + (merge-pathnames
|
|
691 | + (concatenate 'string
|
|
692 | + ;; Write the test file name this way so
|
|
693 | + ;; that it's independent of the encoding
|
|
694 | + ;; used to load this file. The name is
|
|
695 | + ;; "안녕하십니까".
|
|
696 | + '(#\Hangul_Syllable_An #\Hangul_Syllable_Nyeong #\Hangul_Syllable_Ha
|
|
697 | + #\Hangul_Syllable_Sib #\Hangul_Syllable_Ni #\Hangul_Syllable_Gga)
|
|
698 | + ".txt")
|
|
699 | + *test-path*)))))
|
|
686 | 700 | |
687 | 701 | (define-test issue.139-default-external-format
|
688 | 702 | (:tag :issues)
|