[Debichem-devel] Bug#466231: gperiodic: codes in text mode

Daniel Leidert daniel.leidert at wgdd.de
Thu Mar 6 05:40:40 UTC 2008


Am Donnerstag, den 06.03.2008, 06:24 +0100 schrieb Daniel Leidert:

[markup in console output]
> I have written s small patch based on pango_parse_markup (). It outputs
> UTF-8 string without markup and entities are replaced too. The
> differences in output are shown in the following diff:
[..]
> A problem that is left is, that the filling-stuff doesn't fully work for
> special characters with UTF-8 output. Maybe you have some idea.

Found it. Needed to replace strlen with g_utf8_strlen and then it works.
The attached patch works for me - tested on an xterm with de_DE.UTF-8.

Regards, Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 466231.patch
Type: text/x-patch
Size: 831 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debichem-devel/attachments/20080306/cee406ee/attachment.bin 


More information about the Debichem-devel mailing list