Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2002 00:34:06 +0900
From:      SASAKI Katuhiro <sahiro@crest.ocn.ne.jp>
To:        Will Andrews <will@csociety.org>
Cc:        Liu Siwei <swliu77@hotmail.com>, freebsd-questions@freebsd.org, kde@FreeBSD.org
Subject:   Re: [kde-freebsd] Re: chinput can't work on KDE2.2.2
Message-ID:  <3c4d866e.6574%sahiro@crest.ocn.ne.jp>
In-Reply-To: <20020122094241.J18609@squall.waterspout.com>
References:  <F36JswFCHOzyfyz5b6K00003683@hotmail.com> <20020122094241.J18609@squall.waterspout.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi.

In <20020122094241.J18609@squall.waterspout.com>, Will Andrews wrote:
>On Tue, Jan 22, 2002 at 08:56:13AM +0000, Liu Siwei wrote:
>
>This question is not appropriate for the -current list.  I'm
>expanding this to include the maintainers of the KDE ports to see
>if anyone else has an idea what's going on.
>
>>    I have a question about FreeBSD's locale. I use the zh_CN.EUC locale to 
>> let my FreeBSD support Simplied Chinese. It's all right in gnome 1.4. But in 
>> 
>> recent version of KDE(aka. KDE-2.2.2), I can't set zh_CN.EUC locale for it. 
>
I think this trouble is because of a problem in Qt 2.3.1.
I have found the problem in QTextCodec and send a patch to 
qt-bugs@trolltech.com. And I received a reply that says the 
problem will be fixed in Qt-2.3.3 and Qt 3.0.2.
The patch I send is below. Please test this.


--- qt-2.3.1/src/tools/qeucjpcodec.cpp.orig	Wed Jun 13 17:53:47 2001
+++ qt-2.3.1/src/tools/qeucjpcodec.cpp	Sat Dec 22 20:55:38 2001
@@ -317,8 +317,8 @@
 	}
 	// there exists ja_JP.EUC, ko_KR.EUC, zh_CN.EUC and zh_TW.EUC
 	// so "euc" may or may not be Japanese EUC.
-	if (qstricmp(p, "euc") == 0) {
-	    return ja ? score + 4 : 1;
+	if (qstricmp(p, "euc") == 0 && ja) {
+	    return score + 4;
 	}
     }
     return QTextCodec::heuristicNameMatch(hint);
--- qt-2.3.1/src/tools/qeuckrcodec.cpp.orig	Wed Jun 13 17:53:47 2001
+++ qt-2.3.1/src/tools/qeuckrcodec.cpp	Sat Dec 22 20:55:38 2001
@@ -221,8 +221,8 @@
     if (qstricmp(p, "eucKR") == 0) {
       return score + 4;
     }
-    else if (qstricmp(p, "euc") == 0) {
-      return ko ? score + 4 : 1;
+    else if (qstricmp(p, "euc") == 0 && ko) {
+      return score + 4;
     }
   }
   return QTextCodec::heuristicNameMatch(hint);
--- qt-2.3.1/src/tools/qgbkcodec.cpp.orig	Wed Jun 13 17:53:47 2001
+++ qt-2.3.1/src/tools/qgbkcodec.cpp	Sat Dec 22 20:55:38 2001
@@ -187,6 +187,8 @@
       	    return score + 4;
 	else if (qstricmp(p, "GB2312") == 0)
 	    return score + 2;
+	else if (qstricmp(p, "euc") == 0 && zh)
+	    return score + 4;
     }
     return QTextCodec::heuristicNameMatch(hint);
 }


================================================================
                       SASAKI Katuhiro

                mailto: sahiro@crest.ocn.ne.jp
================================================================

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3c4d866e.6574%sahiro>