All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Trần Ngọc Quân" <vnwildman@gmail.com>
To: Thomas Rast <tr@thomasrast.ch>
Cc: git-malling-list <git@vger.kernel.org>
Subject: Re: gettext CTYPE for libc
Date: Mon, 25 Nov 2013 08:32:17 +0700	[thread overview]
Message-ID: <5292A8A1.2040903@gmail.com> (raw)
In-Reply-To: <874n72goem.fsf@linux-k42r.v.cablecom.net>

On 24/11/2013 16:05, Thomas Rast wrote:
> Trần Ngọc Quân <vnwildman@gmail.com> writes:
>
>> $ git status
>> fatal: Unable to read current working directory: Kh?ng c? t?p tin ho?c
>> th? m?c nh? v?y
>>
>> So, somthing wrong with our charset.
> [...]
> Do you know why this "suddenly" broke?
I think git set CTYPE="C" for libc, so charset become  7-bit ASCII, but
it don't set LC_MESSAGES="C" for libc and libc will get this one from
system variable.
> The long comment in
> init_gettext_charset() suggests that the *existing* code is there to
> handle exactly this problem, and apparently it doesn't.  Why?  Has libc
> moved the perror() strings into a separate domain in some version?
See setlocale(3) [1]
I'm a newbie in GIT. I'm not sure about git work correctly [2] if set
git's charset to same with system.
I don't think libc moved perror() string in separate domain. It use its
own domain.

[1]  http://man7.org/linux/man-pages/man3/setlocale.3.html
[2]  incorrect if some function need work in ASCII mode

-- 
Trần Ngọc Quân.

  reply	other threads:[~2013-11-25  1:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-23  2:15 gettext CTYPE for libc Trần Ngọc Quân
2013-11-24  9:05 ` Thomas Rast
2013-11-25  1:32   ` Trần Ngọc Quân [this message]
2013-11-25  7:20 ` Duy Nguyen
2013-11-25 19:31   ` Jonathan Nieder

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=5292A8A1.2040903@gmail.com \
    --to=vnwildman@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=tr@thomasrast.ch \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.