Edgewall Software
Modify

Ticket #7694 (closed defect: duplicate)

Opened 3 years ago

Last modified 3 years ago

[hg] Unicode characters fail to print in commit messages

Reported by: zokier@… Owned by: cboos
Priority: low Milestone:
Component: plugin/mercurial Version: 0.11.1
Severity: normal Keywords: unicode mercurial
Cc:
Release Notes:
API 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

Change History

comment:1 Changed 3 years ago by zokier@…

  • Priority changed from normal to low

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 Changed 3 years ago by cboos

  • Component changed from version control to plugin/mercurial
  • Owner set to cboos

comment:3 Changed 3 years ago by rblank

  • Milestone set to not applicable

comment:4 Changed 3 years ago by cboos

  • Milestone not applicable deleted
  • Resolution set to duplicate
  • Status changed from new to closed

See #7217.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cboos. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.