X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Foctets.lisp;h=b86a1be23cd3cdd6c550fc4e7e32a95483048c2b;hb=a4882e3023fdd5e777169a4cbede33605281173c;hp=b7dbfd02e0dce74d462a44ae871faf072751c4f3;hpb=43bc8de9f926b47538648d38e1327d42f84c779a;p=sbcl.git diff --git a/src/code/octets.lisp b/src/code/octets.lisp index b7dbfd0..b86a1be 100644 --- a/src/code/octets.lisp +++ b/src/code/octets.lisp @@ -221,6 +221,7 @@ one-past-the-end" (defun get-latin-bytes (mapper external-format string pos end) (declare (ignore end)) (let ((code (funcall mapper (char-code (char string pos))))) + (declare (type (or null char-code) code)) (values (cond ((and code (< code 256)) code) (t @@ -640,13 +641,16 @@ one-past-the-end" (defun default-external-format () (or *default-external-format* - (let ((external-format (intern (or (sb!alien:alien-funcall - (extern-alien - "nl_langinfo" - (function c-string int)) - sb!unix:codeset) - "LATIN-1") - "KEYWORD"))) + (let ((external-format #!-win32 (intern (or (sb!alien:alien-funcall + (extern-alien + "nl_langinfo" + (function c-string int)) + sb!unix:codeset) + "LATIN-1") + "KEYWORD") + #!+win32 + #!+sb-unicode (sb!win32::ansi-codepage) + #!-sb-unicode :LATIN-1)) (/show0 "cold-printing defaulted external-format:") #!+sb-show (cold-print external-format)