[PATCH stable v2] convert: use original local encoding when converting from Perforce

Eugene Baranov eug.baranov at gmail.com
Wed Jul 22 17:18:03 CDT 2015


My 'active code page' is 850, but p4 indeed generates 1252-encoded text.

I've tried to 'convince' p4 to output in UTF-8, but so far I haven't
figured out how.

By lost I meant getting replaced with '?'

On 22 July 2015 at 20:13, Matt Mackall <mpm at selenic.com> wrote:
> On Wed, 2015-07-22 at 18:49 +0100, Eugene Baranov wrote:
>> In my environment p4 seems to use default system locale (windows-1252)
>
> It generates 1252-encoded bytes on the command line? Is your command
> line environment in cp437 or similar? This is Mercurial's strategy on
> Windows (ignore the OEM code page, only pay attention to the ANSI code
> page) so I like it, but optimally we'd use UTF-8 for transferring
> metadata across and a configurable encoding for filenames.
>
>> for the output which results in some fancy character like "smart
>> quotes" (“ 201C and ” 201D) to be lost if Latin1 is used.
>
> When you say 'lost', do you mean they replaced with '?' or mojibaked?
>
> --
> Mathematics is the supreme nostalgia of our time.
>


More information about the Mercurial-devel mailing list