Raymond Toy pushed to branch issue-139-set-filename-encoding-to-utf8 at cmucl / cmucl
Commits:
- 
2c91358a
by Raymond Toy at 2022-12-12T11:10:10-08:00
 
1 changed file:
Changes:
| ... | ... | @@ -258,6 +258,13 @@ | 
| 258 | 258 |  	(assert-equal (map 'list #'char-code out-string)
 | 
| 259 | 259 |  		      (map 'list #'char-code expected))))))
 | 
| 260 | 260 | |
| 261 | +(define-test issue.25c-setup
 | 
|
| 262 | +    (:tag :issues)
 | 
|
| 263 | +  ;; Get the external format before running the test issue.25c.  See
 | 
|
| 264 | +  ;; issue #161
 | 
|
| 265 | +  ;; (https://gitlab.common-lisp.net/cmucl/cmucl/-/issues/161).
 | 
|
| 266 | +  (assert-true (stream::find-external-format :utf16-be)))
 | 
|
| 267 | +  | 
|
| 261 | 268 |  (define-test issue.25c
 | 
| 262 | 269 |      (:tag :issues)
 | 
| 263 | 270 |    ;; Modified test to verify that each octet read from run-program is
 | 
| ... | ... | @@ -267,9 +274,6 @@ | 
| 267 | 274 |  					   #\greek_small_letter_beta)))
 | 
| 268 | 275 |  	 (expected (stream:string-encode in-string :utf16-be))
 | 
| 269 | 276 |  	 (path #p"issue25c.txt"))
 | 
| 270 | -    ;; Get the external format before opening the file.  See issue
 | 
|
| 271 | -    ;; #161 (https://gitlab.common-lisp.net/cmucl/cmucl/-/issues/161).
 | 
|
| 272 | -    (stream::find-external-format :utf16-be)
 | 
|
| 273 | 277 |      (with-open-file (s path :direction :output :if-exists :supersede :external-format :utf16-be)
 | 
| 274 | 278 |        (write-string in-string s)
 | 
| 275 | 279 |        (force-output s)
 |