[Bug 5060] New: Can't save special characters in Mercurial.ini

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Sat Jan 23 00:48:39 UTC 2016


https://bz.mercurial-scm.org/show_bug.cgi?id=5060

            Bug ID: 5060
           Summary: Can't save special characters in Mercurial.ini
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: tjd.rodgers at gmail.com
                CC: mercurial-devel at selenic.com

There is some confusion on what encoding I should save my Mercurial.ini in.

I'm trying to correctly save this line: 

C:\Dev> hg config ui.username
username =  Te-jé Rodgers <tjd.rodgers at gmail.com>

My Python default locale is ('en_US', 'cp1252') so I tried that. Run I run `hg
config ui.username` however, I get this:

C:\Dev> hg config ui.username
Te-jΘ Rodgers <tjd.rodgers at gmail.com>

If I try saving with utf-8 instead, I get this:

C:\Dev> hg config ui.username
Te-jé Rodgers <tjd.rodgers at gmail.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list