[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#888689: csvtool: namedcol fails on files with byte order mark



Package: csvtool
Version: 1.5-1+b1
Severity: important

If an input csv-file starts with the unicode byte order mark character,
the first column name is not recognized:

$ head -3 routes.txt 
route_id,route_short_name,route_long_name,route_type
1,1,Vatiala - Pirkkala,3
1A,1A,Vatiala - Pirkkala,3
$ csvtool namedcol route_id routes.txt 
route_id
Fatal error: exception Failure("namedcol: requested header "route_id"
not in CSV file "routes.txt"")

There is a new upstream version (2.0) which may or may not fix this bug.

-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 4.9.0-5-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages csvtool depends on:
ii  libc6  2.24-11+deb9u1

csvtool recommends no packages.

csvtool suggests no packages.

-- no debconf information


Reply to: