Special characters in commit message on command line
cryo at cyanite.org
Mon Jun 20 06:41:35 CDT 2011
On 2011-06-17 13:48, Matt Mackall wrote:
>On Fri, 2011-06-17 at 13:42 -0500, Robert Altman wrote:
>> Is there any way to enter special characters in a commit message when typing
>> at the command line?
>> For example:
>> hg commit -m"Too many changes to describe!"
>> hg commit -m"Changes 'mebabytes' to megabytes'"
>On Windows, this will be hard. The console and the GUI (ie where your
>usual commit editor lives) don't agree about how to encode characters,
>so Mercurial goes by the _GUI's_ idea of the current encoding.
Depends... notepad defaults to the system charset, and the console does
as well. So as long as the characters are in that charset it's ok.
What we do (at my work) is make sure commit is called with
--encoding utf8 and then launch an editor (notepad2) which defaults to
UTF-8 as well.
Robert, you can do something along those lines. But there are some
small things to be aware of: Your mercurial.ini's will now also be read
as UTF-8 (which can be an issue for people's names).
All in all, pretty non-trivial :p
More information about the Mercurial