added test for bytes<->string/locale
svn: r267
This commit is contained in:
parent
cd014b9c40
commit
1951afa0a5
|
@ -1428,4 +1428,11 @@
|
|||
(cons (integer->char i) (loop (add1 i)))))))
|
||||
|
||||
|
||||
;; ----------------------------------------
|
||||
;; Whatever bytes->string/locale does with a bad locale, it shouldn't crash
|
||||
|
||||
(parameterize ([current-locale "no such locale"])
|
||||
(with-handlers ([exn:fail:contract? void]) (bytes->string/locale #"xxx"))
|
||||
(with-handlers ([exn:fail:contract? void]) (string->bytes/locale "xxx")))
|
||||
|
||||
(report-errs)
|
||||
|
|
Loading…
Reference in New Issue
Block a user