Bug#469326: mercurial: `hg diff` can break UTF-8 encoding

2008-03-04 Thread Jakub Wilk

Package: mercurial
Version: 0.9.5-3
Severity: normal

$ locale charmap
UTF-8
$ hg init
$ echo Sit odio justo urna et vestibulum hymenæos, nec magnis magnis tellus ut. 
 lorem
$ echo Ligula lacus sit consectetuer, ænean in aliquet dui, eget nam arcu ut vel 
vehicula.  lorem
$ iconv -f UTF-8 -t UTF-8  lorem  /dev/null  echo $?
0
$ hg add lorem
$ hg ci -m initial import
$ sed -i -e 's/dui,/foo,/' lorem
$ hg diff | iconv -f UTF-8 -t UTF-8  /dev/null
iconv: illegal input sequence at position 168


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mercurial depends on:
ii  libc6 2.7-6  GNU C Library: Shared libraries
ii  python2.4.4-6An interactive high-level object-o
ii  python-support0.7.6  automated rebuilding support for p

Versions of packages mercurial recommends:
pn  rcs | kdiff3 | tkdiff | meld  none (no description available)

-- debconf-show failed

--
Jakub Wilk



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#469326: mercurial: `hg diff` can break UTF-8 encoding

2008-03-04 Thread Thomas Arendsen Hein
* Jakub Wilk [EMAIL PROTECTED] [20080304 18:38]:
 $ hg diff | iconv -f UTF-8 -t UTF-8  /dev/null
 iconv: illegal input sequence at position 168

In Mercurial 0.9.5 the diff option -p/--show-function is
unconditionally set by default. This bug is fixed in the current
development version (changeset 3d1f9dcecdea), so it will be fixed in
the upcoming release.

You can already change this in /etc/mercurial/hgrc, ~/.hgrc or
.hg/hgrc by adding this:

[diff]
showfunc = false

Regards,
Thomas Arendsen Hein

-- 
[EMAIL PROTECTED] - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrueck - Register: Amtsgericht Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]