Package: utfout
Version: 0.0.1-1+b1
Severity: normal

Dear Maintainer,

First: This is an excellent little tool, just what I need:

$ utfout 'one\u0020two\nthree'
one two
three

Small problem: If the first character of the string to be converted is a '-', 
the whole
string is treated as an option string, causing an wrror message without any 
further
output:

$ utfout '-one\u0020two\nthree'
utfout: invalid option -- 'n'
utfout: invalid option -- '\'

It seems to make no difference if the string is preceeded by true options:

$ utfout -i '-one\u0020two\nthree'
utfout: invalid option -- 'n'
utfout: invalid option -- '\'

$ utfout -t '-one\u0020two\nthree'
utfout: invalid option -- 'n'
utfout: invalid option -- '\'

The usual convention of using '--' to end options processing has the unexpected 
result of
suppressing all output:

$ utfout -- '-one\u0020two\nthree'
$ utfout -i -- '-one\u0020two\nthree'

A possible workaround is preceding the string by a character that is removed 
after
conversion:

$ utfout ' -one\u0020two\nthree'
 -one two
three

$ utfout ' -one\u0020two\nthree' | sed -e 's/^ //'
-one two
three0

-- System Information:
Debian Release: 10.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-9-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages utfout depends on:
ii  libc6  2.28-10

utfout recommends no packages.

utfout suggests no packages.

-- debconf-show failed

Reply via email to