This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5903] New: "iconv" creates unnecessary output
- From: "titcouille dot mandriva at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 10 Mar 2008 12:57:59 -0000
- Subject: [Bug libc/5903] New: "iconv" creates unnecessary output
- Reply-to: sourceware-bugzilla at sourceware dot org
This bug concerns the "iconv" utility. It's not really a bug, but bad design. I did:
iconv --from-code==LATIN1 --to-code=UTF-8 --output=file_to_convert.xml
output_file.xml
where mistakingly I had put my original file, file_to_convert.xml, as output
file. And for source file I had specified mistakingly some output filename which
doesn't exist. So iconv displayed that "output_file.xml" doesn't exist, that it
can't read from it, but replaced my original file (file_to_convert.xml) with an
empty 0-byte file. But it's stupid that it would put an empty file (and thus
destroy all my data) when there was nothing to convert in the first place.
To sum it up, don't create an output file when there isn't an input file.
--
Summary: "iconv" creates unnecessary output
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: titcouille dot mandriva at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=5903
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.