[issue2943] In unicode locales non-english text is too narrow

ZyX bugs at mercurial.selenic.com
Sat Aug 6 06:28:30 CDT 2011


New submission from ZyX <kp-pav at yandex.ru>:

Consider the difference between

    LANG=ru_RU.UTF-8 hg help update | iconv -f UTF-8 | grep -e '-C --clean'

and

    LANG=ru_RU.CP1251 hg help update | iconv -f CP1251 | grep -e '-C --
clean'

(you may use any other 1-byte encoding that is present on your system). In 
first case you will see

     -C --clean        затереть незакоммиченные

, in the second:

     -C --clean        затереть незакоммиченные изменения (без бэкапа)

. Here in the first case column is too narrow and thus help is less 
readable. It looks like formatter does not know that one character may be 
represented by more then one byte in unicode locales.

----------
messages: 17075
nosy: ZyX
priority: bug
status: unread
title: In unicode locales non-english text is too narrow

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2943>
____________________________________________________


More information about the Mercurial-devel mailing list