[Bug 1270359] [NEW] test locale for Unicode support
Rolf Leggewie
1270359 at bugs.launchpad.net
Sat Jan 18 03:58:14 UTC 2014
Public bug reported:
pastebinit needs Unicode support to work. It would be nice if it tested
for it and raised an error understandable to the average user.
$ LC_ALL=C.UTF-8 pastebinit -v
pastebinit v1.4
$ LC_ALL=C.UTF-8 pastebinit -v
pastebinit v1.4
leggewie at 1001P:/etc$ LC_ALL=C pastebinit -v
Traceback (most recent call last):
File "/usr/bin/pastebinit", line 293, in <module>
pastebind = preloadPastebins()
File "/usr/bin/pastebinit", line 102, in preloadPastebins
instance.read(filename)
File "/usr/lib/python3.2/configparser.py", line 689, in read
self._read(fp, filename)
File "/usr/lib/python3.2/configparser.py", line 994, in _read
for lineno, line in enumerate(fp, start=1):
File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 167: ordinal not in range(128)
** Affects: pastebinit
Importance: Undecided
Status: New
** Affects: pastebinit (Ubuntu)
Importance: Undecided
Status: New
** Also affects: pastebinit
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pastebinit in Ubuntu.
https://bugs.launchpad.net/bugs/1270359
Title:
test locale for Unicode support
Status in Pastebin it !!!:
New
Status in “pastebinit” package in Ubuntu:
New
Bug description:
pastebinit needs Unicode support to work. It would be nice if it
tested for it and raised an error understandable to the average user.
$ LC_ALL=C.UTF-8 pastebinit -v
pastebinit v1.4
$ LC_ALL=C.UTF-8 pastebinit -v
pastebinit v1.4
leggewie at 1001P:/etc$ LC_ALL=C pastebinit -v
Traceback (most recent call last):
File "/usr/bin/pastebinit", line 293, in <module>
pastebind = preloadPastebins()
File "/usr/bin/pastebinit", line 102, in preloadPastebins
instance.read(filename)
File "/usr/lib/python3.2/configparser.py", line 689, in read
self._read(fp, filename)
File "/usr/lib/python3.2/configparser.py", line 994, in _read
for lineno, line in enumerate(fp, start=1):
File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 167: ordinal not in range(128)
To manage notifications about this bug go to:
https://bugs.launchpad.net/pastebinit/+bug/1270359/+subscriptions
More information about the foundations-bugs
mailing list