[gtkmm] filename_to_utf8 + gettext = problems
- From: Frederic Jean <frederic_jean users sourceforge net>
- To: gtkmm-list gnome org
- Subject: [gtkmm] filename_to_utf8 + gettext = problems
- Date: Thu, 05 Jun 2003 17:31:28 -0400
Hi,
In the software we are currently developing, we get filename and folder name
with functions from stat.h ( char* ) that we put in std::string. Then, we
apply the function filename_to_utf8 to these std:string to get ustring and
make them shown by a TreeView. All was working fine util we decide to use
gettext. We just put the lines
ALL_LINGUAS="fr"
AM_GNU_GETTEXT
in configure.in
and
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
in main()
Now, all call to filename_utf8 failed with the following error :
glibmm-CRITICAL **:
unhandled exception (type Glib::Error) in signal handler:
domain: g_convert_error
code : 1
what : invalid byte sequence in conversion input.
We have tried locale_to_utf8, with the same results.
And finally, we tried without make any call to filename_to_utf8 or
local_to_utf8, and we get these warnings :
WARNING **: Invalid UTF8 string passed to pango_layout_set_text()
For now, we are developing on RedHat 8.0, configured for french canadian
(fr_CA)
Did anyone already have this kind of problem?
------
Alexandria Archives development team
www.alexandriaarchives.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]