Bug 52860

Summary: wrong encoding in gtkrc-kde
Product: kcontrol Reporter: Egmont Koblinger <egmont>
Component: krdbAssignee: Dirk Mueller <mueller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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;