delorie.com/archives/browse.cgi | search |
Date: | Mon, 26 Feb 2001 17:14:58 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Bruno Haible <haible AT ilog DOT fr> |
cc: | ST001906 AT HRZ1 DOT HRZ DOT TU-Darmstadt DOT De, djgpp-workers AT delorie DOT com |
Subject: | Re: DJGPP specific patch for libiconv-1.5.1 |
In-Reply-To: | <15002.27643.448799.416439@honolulu.ilog.fr> |
Message-ID: | <Pine.SUN.3.91.1010226171159.24373B-100000@is> |
MIME-Version: | 1.0 |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Mon, 26 Feb 2001, Bruno Haible wrote: > > Why is the --binary option needed? Why cannot the files be always > > read and written in binary mode? > > 1) Because iconv deals with text. Text files are opened with "r", not > "rb". > > 2) Because when reading from stdin or writing to stdout, special work > is needed to get that file into binary mode. It should not be the > default. Sorry, I'm probably missing something: if iconv deals with text files, why is the --binary option needed at all? In other words, under what circumstances is the user expected to use --binary?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |