about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.ibm.com>2019-02-06 12:29:02 +0100
committerStefan Liebler <stli@linux.ibm.com>2019-02-06 12:29:02 +0100
commitb6d8a999cd490665c795ad316a49cc22bdde2fa4 (patch)
treeb3da101cb4773d8ce7d05a30481988ae03ae380a /sysdeps/unix
parent94eeeec04be8efae1a85d7c224e0026ee18ee6e7 (diff)
downloadglibc-b6d8a999cd490665c795ad316a49cc22bdde2fa4.tar.gz
glibc-b6d8a999cd490665c795ad316a49cc22bdde2fa4.tar.xz
glibc-b6d8a999cd490665c795ad316a49cc22bdde2fa4.zip
Fix wide char format specifier in libio/tst-bz24153.c.
On big endian systems the test fails with:
tst-bz24153.c:88: numeric comparison failure
   left: 1660944385 (0x63000001); from: ch
  right: 99 (0x63); from: L'c'
tst-bz24153.c:90: numeric comparison failure
   left: 1677721601 (0x64000001); from: ch
  right: 100 (0x64); from: L'd'
error: 2 test failures

One 'char' ("%c") is stored to the 'wchar_t *':
ch = 0x00000001 | 0x63000000

This patch is using "%lc" as format specifier to read a wchar_t.

ChangeLog:

	* libio/tst-bz24153.c (wide): Use wide char format specifier.
Diffstat (limited to 'sysdeps/unix')
0 files changed, 0 insertions, 0 deletions