From: Johannes Sixt <j.sixt@viscovery.net>
To: Peter Krefting <peter@softwolves.pp.se>
Cc: git@vger.kernel.org
Subject: Re: [RFC PATCH] Windows: Assume all file names to be UTF-8 encoded.
Date: Mon, 02 Mar 2009 13:34:19 +0100 [thread overview]
Message-ID: <49ABD24B.5060005@viscovery.net> (raw)
In-Reply-To: <alpine.DEB.2.00.0903021137110.17877@perkele.intern.softwolves.pp.se>
Peter Krefting schrieb:
> Johannes Sixt:
>> If git prints a file name under the assumption that it is UTF-8
>> encoded, then it will be displayed incorrectly because the system uses
>> a different encoding.
>
> Here setting the local codepage to UTF-8 *might* work, although I
> haven't tested that. Or always use the wchar_t versions of printf and
> friends.
You cannot expect users to switch the locale. For example, I have to test
our software with Japanese settings: I *cannot* switch to UTF-8 just
because of git.
Can you set the local codepage per program? (I don't know.) It might help
here, but it doesn't help in all cases, particularly in certain pipelines:
git ls-files -o
git ls-files -o | git update-index --add --stdin
find . -name \*.jpg | git update-index --add --stdin
- What encoding should 'ls-files' use for its output? Certainly not always
UTF-8: stdout should use the local code page so that the file names are
interpreted correctly by the terminal window (it expects the local code page).
- What encoding should 'update-index' expect from its input? Can you be
sure that other programs generate UTF-8 output?
How do you solve that?
-- Hannes
next prev parent reply other threads:[~2009-03-02 12:35 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 8:47 [RFC PATCH] Windows: Assume all file names to be UTF-8 encoded Peter Krefting
2009-03-02 10:30 ` Johannes Sixt
2009-03-02 10:46 ` Peter Krefting
2009-03-02 10:56 ` Johannes Schindelin
2009-03-02 12:03 ` Peter Krefting
[not found] ` <a2633edd0903020512u5682e9am203f0faccd0acf6a@mail.gmail.com>
2009-03-02 13:57 ` Peter Krefting
2009-03-02 14:29 ` Thomas Rast
2009-03-02 20:41 ` Peter Krefting
2009-03-03 7:56 ` Lars Noschinski
2009-03-03 11:54 ` Peter Krefting
2009-03-03 16:29 ` Lars Noschinski
2009-03-03 20:59 ` Robin Rosenberg
2009-03-03 9:47 ` Dmitry Potapov
2009-03-03 11:48 ` Peter Krefting
2009-03-03 17:13 ` Dmitry Potapov
2009-03-04 10:51 ` Peter Krefting
2009-03-04 14:18 ` Dmitry Potapov
2009-03-02 12:34 ` Johannes Sixt [this message]
2009-03-02 13:12 ` Peter Krefting
2009-03-02 19:58 ` Robin Rosenberg
2009-03-02 20:52 ` Peter Krefting
2009-03-02 21:21 ` Robin Rosenberg
2009-03-03 5:51 ` Peter Krefting
2009-03-03 9:43 ` Dmitry Potapov
2009-03-03 11:56 ` Peter Krefting
2009-03-07 10:38 ` Robin Rosenberg
-- strict thread matches above, loose matches on Subject: below --
2009-03-03 18:25 John Dlugosz
2009-03-04 10:53 ` Peter Krefting
2009-03-04 19:34 ` John Dlugosz
2009-03-03 19:36 John Dlugosz
2009-03-03 20:39 John Dlugosz
2009-03-03 21:02 ` Dmitry Potapov
2009-03-03 21:56 ` John Dlugosz
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=49ABD24B.5060005@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=git@vger.kernel.org \
--cc=peter@softwolves.pp.se \
/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.