treat uname result as locale encoding instead of UTF-8
This commit is contained in:
parent
261d73abdb
commit
1e56ca9cc1
|
@ -2414,7 +2414,7 @@ static Scheme_Object *system_type(int argc, Scheme_Object *argv[])
|
|||
Scheme_Object *str;
|
||||
|
||||
s = rktio_uname(scheme_rktio);
|
||||
str = scheme_make_utf8_string(s);
|
||||
str = scheme_make_locale_string(s);
|
||||
rktio_free(s);
|
||||
|
||||
return str;
|
||||
|
|
|
@ -38895,7 +38895,7 @@
|
|||
(unsafe-poll-fd_0 system-fd_0 mode_0 socket?1_0))))))
|
||||
(define get-machine-info
|
||||
(lambda ()
|
||||
(1/bytes->string/utf-8
|
||||
(1/bytes->string/locale
|
||||
(begin
|
||||
(unsafe-start-atomic)
|
||||
(begin0
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#lang racket/base
|
||||
(require "../host/rktio.rkt"
|
||||
"../host/thread.rkt"
|
||||
"../string/convert.rkt")
|
||||
"../locale/string.rkt")
|
||||
|
||||
(provide get-machine-info)
|
||||
|
||||
(define (get-machine-info)
|
||||
(bytes->string/utf-8
|
||||
(bytes->string/locale
|
||||
(atomically
|
||||
(define v (rktio_uname rktio))
|
||||
(begin0
|
||||
|
|
Loading…
Reference in New Issue
Block a user