[PD-dev] [ pure-data-Bugs-3595309 ] Win32: command line args don't accept unicode

SourceForge.net noreply at sourceforge.net
Wed Dec 12 21:57:10 CET 2012


Bugs item #3595309, was opened at 2012-12-12 12:57
Message generated for change (Tracker Item Submitted) made by eighthave
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=3595309&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
Group: v0.44
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Hans-Christoph Steiner (eighthave)
Assigned to: Nobody/Anonymous (nobody)
Summary: Win32: command line args don't accept unicode

Initial Comment:
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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=3595309&group_id=55736



More information about the Pd-dev mailing list