GNOME Bugzilla – Bug 591302
[Windows] Accents like àçèé^`¨ in file path (or filename)
Last modified: 2010-01-24 17:43:04 UTC
[Windows] (tested Windows 2k/XP) - If I'm using an accent like àçèé^`¨ in file path (and/or filename), it disables opening .dia with 'diaw --integrated''. In fact, when I double-click on a .dia with an accent in file path, nothing happens (!), the only way to open the file, is to open dia and then, open the file (!).
This is a flaw in dia-win-remote.c, it could be overcome by using the WCHAR version of the win32 API.
I'm working on this API switch in dia-win-remote now. However, I'm not sure how to handle this problem: (Output from the cmd.exe commandline) >dia.exe e:\tmp\löäöä.dia [Invalid UTF-8] \xbbe:\tmp\l\xf6\xe4\xf6\xe4.dia\xab nicht gefunden Should Dia explicitly test commandline parameters for wchars? Or should dia-win-remote convert the commandline parameters to UTF-8?
g_print and most other GLib APIs expect utf-8, the windows API to use is wchar, e.g. GetCommandLineW(). I think there is almost no GLib usage required in dia-win-remote. But if there is use g_utf16_to_utf8() before passing wide-char filename.
All the issue here should be resolved by the patch set just applied for bug #570592 *** This bug has been marked as a duplicate of bug 570592 ***