Package: unicode
Version: 2.4
Severity: normal
"unicode U00" produces information on U and 0 and 0 (return code 0).
"unicode U000" produces no output at all (return code 0).
"unicode U0000" produces a python backtrace (return code 1).
"unicode U+0000" produces information about codepoint 0 (return code 0).
0 dkg@alice:~$ unicode U0000
Traceback (most recent call last):
File "/usr/bin/unicode", line 913, in <module>
main()
File "/usr/bin/unicode", line 909, in main
processed_args = process(l_args, options.type, options.fromcp,
prefill_cache=True)
File "/usr/bin/unicode", line 532, in process
val = int(arg, 16)
ValueError: invalid literal for int() with base 16: 'U0000'
1 dkg@alice:~$
The backtrace seems out of place, and should probably be handled more
gracefully.
--dkg
-- System Information:
Debian Release: stretch/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'testing'), (200,
'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.7.0-rc7-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages unicode depends on:
pn python:any <none>
Versions of packages unicode recommends:
ii unicode-data 9.0-1
unicode suggests no packages.
-- no debconf information