Date: Sat, 24 Feb 2001 22:41:33 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp-workers AT delorie DOT com Message-Id: <7263-Sat24Feb2001224133+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 CC: haible AT ilog DOT fr, djgpp-workers AT delorie DOT com In-reply-to: <2E9DA485A1B@HRZ1.hrz.tu-darmstadt.de> (ST001906 AT HRZ1 DOT HRZ DOT TU-Darmstadt DOT De) Subject: Re: gettext pretest available References: <2E9DA485A1B AT HRZ1 DOT hrz DOT tu-darmstadt DOT de> 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 Precedence: bulk > From: "Juan Manuel Guerrero" > Organization: Darmstadt University of Technology > Date: Sat, 24 Feb 2001 19:13:37 +0200 > > Only FYI: there are two occurrences of setmode in the whole package. > 1) src/msgfmt.c. Here stdout is switched to O_BINARY and stdout is > really stdout (1). > 2) src/msgunftm.c. Here stdin is switched to O_BINARY. It is really stdin (0). > In this case, the macro is a *must have*. The reason is the way msgunfmt > evaluates the command line. > On gettext 0.10.35 the user had to explicitely write a dash for stdin. > On gettext 0.10.36 the user can write a dash or *nothing* for stdin. > This has the concequence that a newbie that types the command: > > PROMPT> msgunfmt CR > > will have to reboot the machine. No arguments to msgunfmt always implies: > read from stdin. Now, there is no way to terminate the programm. Yes, a known gotcha ;-). GZip has similar problems before the last port stopped switching stdin into binary mode when console was stdin. > Now it is clear that an appropiate comment *must* and will be added to the > macro in lib/system.h. Thanks.