git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3] git-p4: add "--path-encoding" option

From
Lars Schneider <larsxschneider@gmail.com>
Date
Sep 1, 2015, 18:55 UTC
Message-ID
<1243E147-EFEC-4D0B-9872-6B9A8BBE7737@gmail.com>
In-Reply-To
<xmqqmvx6rqk7.fsf@gitster.mtv.corp.google.com>
On 01 Sep 2015, at 19:35, Junio C Hamano <gitster@pobox.com> wrote:
Show 21 quoted lines
> Lars Schneider <larsxschneider@gmail.com> writes:
> 
>> On 01 Sep 2015, at 01:13, Junio C Hamano <gitster@pobox.com> wrote:
>> 
>>> larsxschneider@gmail.com writes:
>>> 
>>>> From: Lars Schneider <larsxschneider@gmail.com>
>>>> 
>>> 
>>> Here is a space for you to describe what it does and why it is a
>>> good idea to have it.
>> How about this:
>> 
>> Perforce keeps the encoding of a path as given by the originating
>> OS. Git expects paths encoded as UTF-8. Add an option to tell git-p4
>> what encoding Perforce had used for the paths. This encoding is used
>> to transcode the paths to UTF-8. As an example, Perforce on Windows
>> uses “cp1252” to encode path names.
> 
> Very readable.  Does "Perforce on Windows" always use cp1252, or
> is it more correct to say "often uses" here?

Thank you! I don’t know if “always” or “often” is better. On my Windows test system it is “always”… but that’s not a valid sample size :-) I searched the Internet for clues around cp1252 and found that a similar patch was submitted to Mercurial just a month ago. The author seconds my cp1252 observation: http://mercurial.808500.n3.nabble.com/PATCH-stable-convert-use-original-local-encoding-when-converting-from-Perfoce-tp4025088p4025094.html

- Lars
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 13 in “git-p4: add "--path-encoding" option”
  1. git-p4: add "--path-encoding" optionlarsxschneider@gmail.com, Aug 31, 2015
  2. git-p4: add "--path-encoding" optionlarsxschneider@gmail.com, Aug 31, 2015
  3. Junio C HamanoAug 31, 2015
  4. Lars SchneiderSep 1, 2015
  5. Junio C HamanoSep 1, 2015
  6. Junio C HamanoSep 1, 2015
  7. Lars SchneiderSep 1, 2015
  8. Junio C HamanoSep 1, 2015
  9. Torsten BögershausenSep 1, 2015
  10. Fwd: Re: [PATCH v3] git-p4: add "--path-encoding" optionTorsten Bögershausen, Sep 1, 2015
  11. Lars SchneiderSep 1, 2015
  12. Torsten BögershausenSep 1, 2015
  13. Lars SchneiderSep 1, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.