From: "Alexey I. Froloff" <raorn@immo.ru> To: community@altlinux.ru Subject: Re: [Comm] Localization Date: Tue, 10 Jun 2003 19:20:13 +0400 Message-ID: <20030610152013.GG5246@inferno.immo> (raw) In-Reply-To: <200306101835.43427.zerg@altlinux.org> [-- Attachment #1.1: Type: text/plain, Size: 509 bytes --] * Sergey V Turchin <zerg@altlinux.org> [030610 18:52]: > > LANG куте не пофигу, но выставлять его в C - неправильно. > > Правильно - пинать мантейнера чтобы исправил ;-) > Это лучше сразу в TrollTech. Зерг, ты злой, нехороший человек. Заставил меня качать 20 метров. > Можно сделать unset LANG - Qt будет смотреть на LC_CTYPE Ну, LC_CTYPE выставлять в C ещё кривее... -- Regards, Sir Raorn. ------------------- incoming работает нормально - проверил с четырех разных российских точек. -- rider in devel@ [-- Attachment #1.2: qt-x11-free-3.1.2-honor-SUSv3-locales.patch --] [-- Type: text/plain, Size: 1126 bytes --] 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") ); } [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-06-10 15:20 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-06-10 9:08 Alex Levkovich 2003-06-10 10:02 ` Alexey I. Froloff 2003-06-10 14:35 ` Sergey V Turchin 2003-06-10 15:20 ` Alexey I. Froloff [this message] 2003-06-10 16:16 ` Sergey V Turchin 2003-06-10 11:05 ` [Comm] Localization Sergey Vlasov 2003-06-10 12:07 ` [Comm] Localization Alexej Kryukov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030610152013.GG5246@inferno.immo \ --to=raorn@immo.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git