GNOME Bugzilla – Bug 304874
Win32: Cannot open Cyrillic filenames from command line
Last modified: 2005-05-27 10:38:54 UTC
Click any Excel file with cyrillic name (CP1251) leads to error "C:\??????? ????.xls (invalid encoding):Invalid argument" Please fix it; it is only thing to stop our migration from MS Office
Please fix it; it is only thing to stop our migration from MS Office
*** Bug 304873 has been marked as a duplicate of this bug. ***
Would you please attach a simple test file?
Ivan: I am not 100% sure, but he seems to be saying that when an xls file has a cyrillic name (i.e., a non-ASCII name) then Gnumeric cannot read it. Alex: is that the case? Can you open them from inside Gnumeric?
Yes, this can be any file with cyrillic name; but I can open it inside Gnumeric (GTK open file dialog). It is still importent because our users often open files from windows file explorer
I think I see the problem. The utilities in goffice/goffice/utils/go-file.c probably no longer work after glib changed the encoding it uses for filenames on Win32. Ivan: this should be fairly simple to debug starting with go_shell_arg_to_uri.
Created attachment 46891 [details] [review] proposed patch I have already fixed that yesterday but since my broadband service at home has been terminated without any reason I was not able to post it until I am at work.
patch commited
Created attachment 46937 [details] [review] proposed patch The previous patch only works partially. Morten, as we disscused in IRC, you are right that we should use utf16 if we are using NT-based OS so that we are able to open file (in NTFS parition) with name that is not covered by the system codepage (e.g. codepage == big5, Japanese file name). g_locale_to_utf8() should be still used by win9x.
Created attachment 46939 [details] [review] proposed patch (for gnumeric)