Some utf-8 menu items give Gtk-WARNING **: Invalid input string
Andreas Köhler
andi5.py at gmx.net
Wed Nov 23 17:21:21 EST 2005
Hi,
> The /tmp/gnucash.trace also told me that the correct label looks
> as follows
>
> Debug: gnc_menu_additions_menu_setup_one(): Adding
> /menubar/Reports/StandardReports/_Income & Expense/Ertr_äge pro
> Wochentag [ErtrgeproWochentagAction] as [menuitem]
>
> (where the umlaut is in hex 5f c3 a4), whereas the wrong label looks as
> follows:
>
> Debug: gnc_menu_additions_menu_setup_one(): Adding
> /menubar/Reports/StandardReports/_Income & Expense/Ertr303_244ge
> Tortendiagramm [ErtrgeTortendiagrammAction] as [menuitem]
>
> where the umlaut is in hex c3 5f a4 --- somehow the 0x5f (the underscore)
> shows up at the wrong place. However, if I add an actual underscore to that
> string in order to specify a keyboard shortcut, then the manually added
> underscore suddently shows up in the label as a literal underscore, but the
> umlaut is now okay... quite weird.
my scheme knowledge is at a very low level, nevertheless i think the
error is to be found in
src/gnome-utils/gnc-menu-extensions.scm:gnc:new-menu-namer,
as it seems not to distinguish between characters and bytes. This is
of course suboptimal for encodings like utf8 ;-)
-- andi5
More information about the gnucash-devel
mailing list