Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Aug 2006 11:43:49 GMT
From:      Tian-Jian Jiang <barabbas@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/101166: bittorrent-curses only works under English locales.
Message-ID:  <200608011143.k71BhnPW069191@www.freebsd.org>
Resent-Message-ID: <200608011150.k71BoD1J099382@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         101166
>Category:       ports
>Synopsis:       bittorrent-curses only works under English locales.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 01 11:50:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Tian-Jian Jiang
>Release:        6.1
>Organization:
IASL, IIS, SINICA
>Environment:
FreeBSD 6.1-STABLE #20: Tue Jun  6 10:27:46 CST 2006 i386
>Description:
If the LC_ALL, LANG or other related locale environment settings are all zh_TW.UTF-8, for example, bittorrent-curses will complain these:

Traceback (most recent call last):
  File "/usr/local/bin/bittorrent-curses", line 561, in ?
    printHelp(uiname, defaults)
  File "/usr/local/lib/python2.4/site-packages/BitTorrent/parseargs.py", line 69, in printHelp
    print makeHelp(uiname, defaults)
  File "/usr/local/lib/python2.4/site-packages/BitTorrent/parseargs.py", line 65, in makeHelp
    ret += _("arguments are -\n") + formatDefinitions(defaults, 80)
  File "/usr/local/lib/python2.4/site-packages/BitTorrent/parseargs.py", line 96, in formatDefinitions
    s.write(indent + word)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 10-12: ordinal not in range(128)

>How-To-Repeat:
Set LC_ALL, LC_CTYPE or LANG to zh_TW.UTF-8 or zh_TW.Big5, and then execute bittorrent-curses.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608011143.k71BhnPW069191>