sb-ext:*posix-argv* broken on Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm trying to make a command line application that accepts Unicode text and I don't think the command line arguments are processed correctly
Steps to reproduce:
1. Run sbcl
2. (sb-ext:
3. Run textexe.exe with random unicode text and observe very strange output.
For example:
=====
>testexe.exe 発泡ававав
("testexe.exe" ".git" ".gitattributes" ".gitignore" "data" "LICENSE")
=====
This seems like part of a directory listing of my current directory. Sometimes it just replaces characters with question marks.
I was able to reproduce this behavior on Windows 10 and Windows 7, but on Linux it seems to work ok.
Versions confirmed to have this bug:
SBCL 2.0.11 (built from source with --fancy)
SBCL 2.0.0 (official binary)
(:QUICKLISP :ASDF3.3 :ASDF3.2 :ASDF3.1 :ASDF3 :ASDF2 :ASDF :OS-WINDOWS
:NON-BASE-
:COMMON-LISP :IEEE-FLOATING-
:SB-CORE-
:SB-SAFEPOINT-
Changed in sbcl: | |
status: | New → Fix Committed |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
That looks as if you invoked it as "exe *", are you sure your shell/terminal understand unicode?