public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "krichter722 at aol dot de" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug libc/10460] "iconv" corrupts all files over 17 KB from UTF8 to UTF16 Date: Sat, 06 Jul 2013 15:41:00 -0000 [thread overview] Message-ID: <bug-10460-131-ek2se8QK2T@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-10460-131@http.sourceware.org/bugzilla/> http://sourceware.org/bugzilla/show_bug.cgi?id=10460 Kalle Richter <krichter722 at aol dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |krichter722 at aol dot de Version|2.9 |2.17 Resolution|WORKSFORME |--- --- Comment #3 from Kalle Richter <krichter722 at aol dot de> --- This behavior persists in iconv (Ubuntu EGLIBC 2.17-0ubuntu5) 2.17 if you choose input file and output file to be the same (maybe only on an x86_64). Did you one try to reproduce the error with a set of identical input and output files? If I process the files in the following python script (using temporary files) everything works fine: <code> #!/usr/bin/python import os import tempfile import shutil # The intention of this script is to avoid error "bus error" when processing file iconv with identical input and output file for (dirpath, dirnames, filenames) in os.walk("/home/richter/sources/Aristoteles", topdown=True, onerror=None, followlinks=False): #print(dirpath, dirnames, filenames) for filename in filenames: _file = os.path.join(dirpath, filename) #print(_file) file_ext_pair = _file.split(".") if len(file_ext_pair) > 1 and file_ext_pair[len(file_ext_pair)-1] == "java": _tempfile = tempfile.mkstemp()[1] os.system("iconv -f ISO-8859-15 -t utf-8 \""+_file+"\" -o \""+_tempfile+"\"") os.remove(_file) shutil.move(_tempfile, _file) </code> -- You are receiving this mail because: You are on the CC list for the bug.
next parent reply other threads:[~2013-07-06 15:41 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-10460-131@http.sourceware.org/bugzilla/> 2013-07-06 15:41 ` krichter722 at aol dot de [this message] 2013-07-06 15:42 ` krichter722 at aol dot de 2013-07-07 3:25 ` bugdal at aerifal dot cx 2013-07-07 9:23 ` [Bug manual/10460] " krichter722 at aol dot de 2013-10-20 21:22 ` neleai at seznam dot cz 2013-10-21 1:38 ` bugdal at aerifal dot cx 2014-07-01 7:29 ` fweimer at redhat dot com 2009-07-29 18:17 [Bug libc/10460] New: " murielle dot descerisiers at gmail dot com 2009-07-29 18:18 ` [Bug libc/10460] " murielle dot descerisiers at gmail dot com 2009-08-01 3:44 ` drepper at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-10460-131-ek2se8QK2T@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).