From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6159 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?0KDRi9GB0Yw=?= Newsgroups: gmane.linux.lib.musl.general Subject: Locales with legacy codepages Date: Tue, 16 Sep 2014 11:23:35 +0800 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1410837845 407 80.91.229.3 (16 Sep 2014 03:24:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2014 03:24:05 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6172-gllmg-musl=m.gmane.org@lists.openwall.com Tue Sep 16 05:23:58 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XTjMw-0000VO-OU for gllmg-musl@plane.gmane.org; Tue, 16 Sep 2014 05:23:54 +0200 Original-Received: (qmail 3218 invoked by uid 550); 16 Sep 2014 03:23:51 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 3210 invoked from network); 16 Sep 2014 03:23:50 -0000 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS autolearn=ham autolearn_force=no version=3.4.0 User-Agent: K-9 Mail for Android Xref: news.gmane.org gmane.linux.lib.musl.general:6159 Archived-At: Hello, I am running a server which needs to speak with connected clients on a legacy codepage (in particular, cp1251, widely used by Russian people on Windows), and it has built-in gettext translation which can be activated only by setting a proper locale. However I don't know how musl supports locales with legacy codepages, if even. I don't fully understand how such translations work, so if there any ways to make legacy codepage locales work? On previous glibc system I started such server with LC_ALL=ru_RU.CP1251 environment variable and appropriate locale was defined with localedef. I have an option to convert all outgoing locale messages with iconv if musl does not have such support.