Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#7694 closed defect (duplicate)

[hg] Unicode characters fail to print in commit messages

Reported by: zokier@… 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 zokier@…, 14 years ago

Priority: normallow

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.

comment:2 by Christian Boos, 14 years ago

Component: version controlplugin/mercurial
Owner: set to Christian Boos

comment:3 by Remy Blank, 14 years ago

Milestone: not applicable

comment:4 by Christian Boos, 14 years ago

Milestone: not applicable
Resolution: duplicate
Status: newclosed

See #7217.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.