After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 125921 - encoding bug when saving log
encoding bug when saving log
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
0.14.2
Other Linux
: Normal normal
: 0.14.3
Assigned To: Christophe Lambin
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2003-10-31 13:50 UTC by Artur Brodowski
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Artur Brodowski 2003-10-31 13:50:19 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.
Comment 1 Christophe Lambin 2003-11-13 22:22:57 UTC
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?
Comment 2 Artur Brodowski 2003-11-14 10:54:58 UTC
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.
Comment 3 Christophe Lambin 2003-11-14 19:33:34 UTC
Confirmed:  though the events are written in UTF-8, the date string is
actually in local charset. oops! :)