From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 10 Jun 2003 19:20:13 +0400 From: "Alexey I. Froloff" To: community@altlinux.ru Subject: Re: [Comm] Localization Message-ID: <20030610152013.GG5246@inferno.immo> Mail-Followup-To: community@altlinux.ru References: <3EE5A02B.6070001@tut.by> <20030610100242.GC5246@inferno.immo> <200306101835.43427.zerg@altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="N9dE88m3/9rHioVI" Content-Disposition: inline In-Reply-To: <200306101835.43427.zerg@altlinux.org> User-Agent: Mutt/1.4.1i X-Envelope-To: community@altlinux.ru Sender: community-admin@altlinux.ru Errors-To: community-admin@altlinux.ru X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: community@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: --N9dE88m3/9rHioVI Content-Type: multipart/mixed; boundary="CykJmXQjLoWzTnSU" Content-Disposition: inline Content-Transfer-Encoding: 8bit --CykJmXQjLoWzTnSU Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit * Sergey V Turchin [030610 18:52]: > > LANG куте не пофигу, но выставлять его в C - неправильно. > > Правильно - пинать мантейнера чтобы исправил ;-) > Это лучше сразу в TrollTech. Зерг, ты злой, нехороший человек. Заставил меня качать 20 метров. > Можно сделать unset LANG - Qt будет смотреть на LC_CTYPE Ну, LC_CTYPE выставлять в C ещё кривее... -- Regards, Sir Raorn. ------------------- incoming работает нормально - проверил с четырех разных российских точек. -- rider in devel@ --CykJmXQjLoWzTnSU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="qt-x11-free-3.1.2-honor-SUSv3-locales.patch" diff -urN qt-x11-free-3.1.2-orig/src/codecs/qtextcodec.cpp qt-x11-free-3.1.2/src/codecs/qtextcodec.cpp --- qt-x11-free-3.1.2-orig/src/codecs/qtextcodec.cpp 2003-02-24 11:30:01 +0300 +++ qt-x11-free-3.1.2/src/codecs/qtextcodec.cpp 2003-06-10 19:16:46 +0400 @@ -1546,7 +1546,13 @@ const char* QTextCodec::locale() { static QCString lang; - lang = getenv( "LANG" ); + lang = getenv( "LC_ALL" ); + if ( lang.isEmpty() ) { + lang = getenv( "LC_MESSAGES" ); + } + if ( lang.isEmpty() ) { + lang = getenv( "LANG" ); + } #if !defined( QWS ) && defined( Q_OS_MAC ) if ( !lang.isEmpty() ) @@ -2667,11 +2673,11 @@ // Get the first nonempty value from $LC_ALL, $LC_CTYPE, and $LANG // environment variables. char * lang = qstrdup( getenv("LC_ALL") ); - if ( !lang || lang[0] == 0 || strcmp( lang, "C" ) == 0 ) { + if ( !lang || lang[0] == 0 ) { if ( lang ) delete [] lang; lang = qstrdup( getenv("LC_CTYPE") ); } - if ( !lang || lang[0] == 0 || strcmp( lang, "C" ) == 0 ) { + if ( !lang || lang[0] == 0 ) { if ( lang ) delete [] lang; lang = qstrdup( getenv("LANG") ); } --CykJmXQjLoWzTnSU-- --N9dE88m3/9rHioVI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+5fctVqT7+fkT8woRAgcNAJ4y2aF2/0YtP1eudSHatzUInOCT1ACg3bN0 BOuDixmN2kC475PyM1LeCUQ= =2kOD -----END PGP SIGNATURE----- --N9dE88m3/9rHioVI--