Bug 52860 - wrong encoding in gtkrc-kde
Summary: wrong encoding in gtkrc-kde
Status: RESOLVED FIXED
Alias: None
Product: kcontrol
Classification: Miscellaneous
Component: krdb (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Dirk Mueller
URL:
Keywords:
: 52859 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-10 19:14 UTC by Egmont Koblinger
Modified: 2003-04-24 16:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egmont Koblinger 2003-01-10 19:14:45 UTC
Version:            (using KDE KDE 3.0.99)
Compiler:          gcc 3.2.1 
OS:          Linux

The Hungarian translation of the last message of krdb.po has an odoubleacute character properly encoded in utf-8 (in the very last word). However, in the generated ~/.gtkrc-kde this appears as a question mark (other accented letters go there in the usual 8-bit encoding). Seems that the po-message is recoded from utf-8 into latin-1 instead of into the current locale (latin-2 in case of hungarian).
Comment 1 Stephan Binner 2003-01-12 19:24:35 UTC
*** Bug 52859 has been marked as a duplicate of this bug. ***
Comment 2 Dirk Mueller 2003-04-24 16:49:38 UTC
Subject: kdebase/kcontrol/krdb

CVS commit by mueller: 

use local8Bit() for writing the localized comment at the top. The rest
of the file should still be written as Latin1, as GTK otherwise might
not be able to read it. 
CCMAIL: 52860-done@bugs.kde.org


  M +1 -1      krdb.cpp   1.50


--- kdebase/kcontrol/krdb/krdb.cpp  #1.49:1.50
@@ -305,5 +305,5 @@ static void createGtkrc( bool exportColo
             "# \"Apply colors to non-KDE applications\"\n"
             "#\n"
-            "#\n").arg(QDateTime::currentDateTime().toString());
+            "#\n").arg(QDateTime::currentDateTime().toString()).local8Bit();
 
         t << "style \"default\"" << endl;