Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3E8F39E6.DDE9CCCD@phekda.freeserve.co.uk> Date: Sat, 05 Apr 2003 21:17:42 +0100 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: %n$, *m$ and some other c99 support for doprnt.c References: <9E5FDF71AD AT HRZ1 DOT hrz DOT tu-darmstadt DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Juan Manuel Guerrero wrote: [snip] > Unfortunately I have been very busy the last few months so I had to stop > following this newsgroup completely. This seems to have lead to some double > efforts. Oh well, these things happen. Actually, supporting 'hh', 'z', etc. in printf wasn't actually that hard. I wrote some test cases for them (see tests/libc/ansi/stdio/printf2.c), which we can still use. It is probably worth checking that the test behaves the same way before and after applying your patch. I also added support to scanf (well, _doscan) for them. Is there a similar positional patch for scanf? From looking at the Single Unix Specification, version 2, it seems that scanf supports %n$ too. [snip] > Because I had to submit that version to the GNU gettext maintainer, I > would like to see my code getting syncronized with actual CVS _doprnt.c. > I will either remove my code, or adjust it, or in a last resort, I will > have to remove your code from _doprnt.c I think removing my code from _doprnt may be the easiest way to do it. I can't remember if I made any bugfixes at the same time. I don't think so. But it's worth checking the comments in CVS log and doing some diffs. You could use the web interface to CVS for that: http://www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/ansi/stdio/doprnt.c I fixed some bugs in _doprnt or _doscan or perhaps both. I can't really remember. IIRC I fixed a buffer-overflow bug in _doscan, when I added support for 'hh', 'z', etc. > Please let _doprnt.c one or two days unaltered, so I can adjust and submit > my proposed changes. OK. Thanks, bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]