GNOME Bugzilla – Bug 125921
encoding bug when saving log
Last modified: 2004-12-22 21:47:04 UTC
When Pan saves log to the text file it produces 'iso-from-utf' garbage chars. (at least for "pl_PL") Steps to reproduce: 1. generate some events described with national specific chars 2. save log 3. open the file from any text editor regards, artb.
What do you mean by 'iso-from-utf' ? When I follow your steps, Pan correctly writes a UTF-8 file. Are you expecting Pan to write the file in a specific charset?
specific charset is not needed, what i meant was proper encoding. UTF-8 would be fine, but the file saved by Pan does not look like correct one: # file panlog.txt panlog.txt: Non-ISO extended-ASCII text, with LF, NEL line terminators for me it looks like output is simply a conversion from ISO-8859-1 txt, but in my case input is ISO-8859-2. try this: step 0 ;) # export LC_ALL="pl_PL" # export LANG="pl_PL" steps 1-3 same as above.
Confirmed: though the events are written in UTF-8, the date string is actually in local charset. oops! :)
Fixed in CVS: http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan&command=DIFF_FRAMESET&file=ChangeLog&rev1=1.1990&rev2=1.1991&root=/cvs/gnome http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=util.c&rev1=1.248&rev2=1.249&root=/cvs/gnome http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=util.h&rev1=1.132&rev2=1.133&root=/cvs/gnome http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=header-pane-renderer.c&rev1=1.15&rev2=1.16&root=/cvs/gnome http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=log-ui.c&rev1=1.3&rev2=1.4&root=/cvs/gnome