From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FCw2n-0008Ax-Dh for garchives@archives.gentoo.org; Sat, 25 Feb 2006 09:48:53 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1P9lvt0005223; Sat, 25 Feb 2006 09:47:57 GMT Received: from seattleserver.com (spieden.seattleserver.com [205.234.78.130]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1P9ltvZ001206 for ; Sat, 25 Feb 2006 09:47:56 GMT Received: (qmail 6314 invoked from network); 25 Feb 2006 09:47:54 -0000 Received: from pool-71-113-119-162.sttlwa.dsl-w.verizon.net (HELO ?192.168.0.100?) (cshobe@seattleserver.com@71.113.119.162) by spieden.seattleserver.com with ESMTPA; 25 Feb 2006 09:47:54 -0000 From: Casey Allen Shobe Organization: SeattleServer.com, Inc. To: squirrelmail-devel@lists.sourceforge.net Subject: [gentoo-web-user] Squirrelmail's i18n broken with PHP's mbstring enabled Date: Sat, 25 Feb 2006 09:45:10 +0000 User-Agent: KMail/1.9.1 Cc: squirrelmail-i18n@lists.sourceforge.net, gentoo-web-user@lists.gentoo.org, gentoo-server@lists.gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-web-user@gentoo.org Reply-to: gentoo-web-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Message-Id: <200602250945.11227.lists@seattleserver.com> X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k1P9ltvZ001206 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k1P9lvtZ005223 X-Archives-Salt: 8afb840f-574e-44e1-8123-d17052dd7e37 X-Archives-Hash: e4c097fe87a319988d8c6de1ad7689b8 Hi everyone, I've been working rather extensively trying to get all languages to work=20 properly on my system with squirrelmail. I am using Gentoo, PHP 5.1.1, and Squirrelmail 1.4.6-release. For testin= g=20 simplicity, it is simply a stock release from the Squirrelmail website, w= ith=20 all_locales added. I have rebuilt PHP about 14 different ways trying to get things to work t= o no=20 avail - here's what I've determined: Gentoo has an "nls" USE flag, which if used, makes the PHP package depend= ant=20 upon gettext, and enables building of both gettext and mbstring as shared= =20 extensions for PHP. If the "nls" USE flag is disabled, selecting another language in=20 Squirrelmail's Display Options works. However, if Japanese is selected,=20 warnings are shown about needing mbstring (although Japanese text *is*=20 shown), and mail cannot be viewed because of the errors, though a folder = list=20 and mail index is shown, and one can browse the options pages, etc. all i= n=20 Japanese but with the warning at the top. If the "nls" USE flag is enabled, selecting another language does absolut= ely=20 nothing, although the output encoding is changed to whatever is appropria= te=20 for that language. Furthermore, if Japanese is selected, the subject lin= es=20 in the message index are all truncated shorter than normal, with characte= rs=20 such as # and & shown before the '...'. I have written a small test script (UTF-8 encoded) that verifies mbstring= is=20 working: I can successfully view this file in a web browser and verify that the=20 encoding is actually ISO-2022-JP. I normally use the Hardened-PHP patch and a number of other USE flags, ho= wever=20 for the purposes of trying to get to the bottom of this, I built a PHP=20 instance with no USE flags whatsoever, and then enabled only what=20 Squirrelmail complained about needing - namely session and pcre support. = =20 This made no difference. I also have a hacked-up version of squirrelmail that's been made to use U= TF-8=20 internally and as the output charset for all languages - it breaks in the= =20 exact same way. While it does seem to work just fine, even for Japanese,= =20 without the mbstring PHP extension, I've been told by somebody on the=20 squirrelmail-devel list that I need to use mbstring or there will be prob= lems=20 - i.e. the line length on outbound messages will be wrong. Please let me know any suggestions you may have, as I'd like to get this=20 working proper... Cheers, --=20 Casey Allen Shobe | cshobe@seattleserver.com | 206-381-2800 SeattleServer.com, Inc. | http://www.seattleserver.com --=20 gentoo-web-user@gentoo.org mailing list