Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 12500] New: capinfos: mixed decimal marks in table output

Date: Wed, 08 Jun 2016 08:50:15 +0000
Bug ID 12500
Summary capinfos: mixed decimal marks in table output
Product Wireshark
Version Git
Hardware x86
OS Debian
Status UNCONFIRMED
Severity Enhancement
Priority Low
Component Extras
Assignee [email protected]
Reporter [email protected]

Build Information:
Gitrevision 74484c6ebf961769f8f44d8b95ebeb7532f47a93
--
capinfos:
* table format: -T
* comma as field seperator: -m 
* machine readable units: -M
* print timestamps and average data rate

When called with a german locale capinfos uses a dot as decimal mark for
timestamps but a comma for data bit rate:

$ LANG=C          ./capinfos 2009-m57.00.pcap -m -M -S -a -e -i -T
File name,Start time,End time,Data bit rate (bits/sec)
2009-m57.00.pcap,1258531203.914398,1258568304.881020,5227.22
$ LANG=de_DE.utf8 ./capinfos 2009-m57.00.pcap -m -M -S -a -e -i -T
File name,Start time,End time,Data bit rate (bits/sec)
2009-m57.00.pcap,1258531203.914398,1258568304.881020,5227,22

I see two problems:

1) The field separator can occur inside a field. I would at least update the
manpage to warn the user to use quoted output or a different field separator.

2) Parsing the output with different decimal marks causes extra work. Either
localize all fields or none.


You are receiving this mail because:
  • You are watching all bug changes.