On Wed, Jun 13, 2007 at 02:23:21PM -0400, hzluo wrote:
> I just tested it, and the answer is no...
> At least on Windows XP with local set to Simplified Chinese,
> LyX does not accept any filename with Chinese characters.

> Neither lyx.exe nor tex2lyx.exe can propertly handle such files.

I suspected so much.

> I'm trying to make a patch for this problem.

Note that argc/argv are not usable in this setup as they are already
trashed when passed into main().

A proper solution probably involves CommandLineToArgvW from shell32.lib
(#include <shellapi.h>) wrapped in #ifdef WIN32.  This is documented
to be available since NT 3.51, so it should be fine for us.

Andre'

PS: I wonder whether delegating that kind of mess to an external
library would be politically correct in this universe ;-} 

PPS: For completeness' sake and only if you have the time to spare:
could you please try the same with anything that causes ForkedProcess to
run with arguments containing Chinese characters? Using \spell_command
CHINESE_PATH_TO_ISPELL or using graphics with chinese file names might
already do the trick.

Reply via email to