Hello,
I saw a thread posted in Bacula-Users that Windows bwx-conosle did not
display non-ascii characters correctly if they are included in files names
(the file names are garbled) .
I am not familiar with wxWidget, but converting UTF8 characters from wide
characters in local encodings seem to fix the problem.
In ConvertToPrintable methond (wx-console/wxbutils.cpp), replace
return str;
with
wxString strnew(str.wc_str(wxConvUTF8), *wxConvCurrent);
return strnew;
On the other hand, a file name in wide characters from console input (ex. to
mark files to restore) should be converted to UTF8.
In OnEnter method (wx-console/wxbmainframe.cpp), replace
Send(str);
with
wxString strnew(str.wc_str(*wxConvCurrent), wxConvUTF8);
Send(strnew);
So far, non-ascii file names (Japanese in my case) are displayed correctly.
Regards,
Yuji
--
View this message in context:
http://www.nabble.com/Displaying-non-ascii-file-names-in-bwx-console-tp20395590p20395590.html
Sent from the Bacula - Dev mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel