Opened 16 years ago
Closed 16 years ago
#7694 closed defect (duplicate)
[hg] Unicode characters fail to print in commit messages
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | plugin/mercurial | Version: | 0.11.1 |
Severity: | normal | Keywords: | unicode mercurial |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I have unicode characters in commit messages and instead of excepted characters questionmarks are printed.
Example in changeset view: Message: Lis?sin .hgignoreen Visual Studion tiedostoja ja k??nnetyt bin??rit.
Excepted result: Message: Lisäsin .hgignoreen Visual Studion tiedostoja ja käännetyt binäärit
The characters are displayed correctly both with hg log command from terminal and with hgwebdir.fcgi, therefore I assume the bug is in trac or in the hg plugin
I'm using Trac 0.11.1, TracMercurial 0.11.0.5 and Mercurial 1.0.2 in Debian Etch, Python 2.4, sqlite and Apache 2 with fcgi
Attachments (0)
Change History (4)
comment:1 by , 16 years ago
Priority: | normal → low |
---|
comment:2 by , 16 years ago
Component: | version control → plugin/mercurial |
---|---|
Owner: | set to |
comment:3 by , 16 years ago
Milestone: | → not applicable |
---|
comment:4 by , 16 years ago
Milestone: | not applicable |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
See #7217.
So I took a brave step into mercurialplugins source and found out that it was not actually the plugin or trac that was encoding messages in ASCII but Mercurial itself, as it didn't know of anything better.
Setting
HGENCODING
-environment variable in the fcgi-script to UTF-8 works for me, but setting locale correctly(utf-8) could be smarter thing to do?Leaving bug open as imho this should be investigated, and at least documented somewhere easily accessible.