Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#982 Win32: command line args don't accept unicode

v0.44
open
nobody
puredata (318)
5
2012-12-12
2012-12-12
No

on Windows, command line args like 'pd -open' only accept ASCII characters. That's because Windows does not give the args as UTF-8 when calling main(). To fix that, it looks like pd needs GetCommandLineW() to get the full args as UCS-2 then convert to UTF-8 using u8_ucs2toutf8() from s_utf8.c

Here's a bit of example code:
http://msdn.microsoft.com/en-us/library/bb776391\(v=vs.85).aspx

Discussion

  • Apparently, to solve this issue when running "wish85.exe pd-gui.tcl -open unicode_filename", Tcl needs to be compiled using MinGW-64 and its -municode flag to gcc. Hopefully MinGW will include this flag soon, its not there yet.

     


Anonymous


Cancel   Add attachments