[PATCH][BZ #14543] Fix fseek behaviour when called in wide mode

Siddhesh Poyarekar siddhesh@redhat.com
Thu Sep 6 11:24:00 GMT 2012


On Thu, 6 Sep 2012 10:48:10 +0000, Joseph wrote:
> When a test uses a locale, please make it one of those listed in
> LOCALES in localedata/Makefile, that are guaranteed to be available
> when running the testsuite.  For example, de_DE.UTF-8, but not
> en_US.utf8.  Also, you need to set LOCPATH in <test>-ENV so that the
> newly locale data is guaranteed to be used by the test.

OK thanks, I have now used ja_JP.UTF-8 which is generated by the
testsuite with en_US.ISO8859-1 for LC_MESSAGES so that failures get
reported in English. Updated patch attached.

Regards,
Siddhesh

ChangeLog:

	* libio/Makefile (tests): New test case tst-fseek.
	(tst-fseek-ENV): Set localedata path for the test case.
	* libio/tst-fseek.c: New test case to verify that fseek/ftell
	combination works in wide mode.
	* libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
	state when the external buffer state changes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wide-fseek.patch
Type: text/x-patch
Size: 7520 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120906/a00e9958/attachment.bin>


More information about the Libc-alpha mailing list