[Bug 235395] New: glibc wide character output functions don't work.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=235395
Summary: glibc wide character output functions don't work.
Product: openSUSE 10.2
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@forge.provo.novell.com
ReportedBy: zsu@novell.com
QAContact: qa@suse.de
CC: mfabian@novell.com
Recently we just found that wide character output functions, such as fputws,
fputwc, wprintf, fwprintf, fprintf, etc. do not have correct behaviour.
Tried the following sample under zh_CN.UTF-8 locale:
(Following sample is utf-8 encoded.)
#include
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=235395 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |coolo@novell.com Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=235395
------- Comment #1 from mfabian@novell.com 2007-01-16 11:11 MST -------
A call to setlocale() is necessary to make the output work.
I.e. it the program is changed like this, it works:
mfabian@magellan:~/c$ cat bug235395.c
#include
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=235395 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mhopf@novell.com ------- Comment #2 from mfabian@novell.com 2007-01-16 11:13 MST ------- Closing as INVALID because it works when setlocale() is used. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=235395 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #3 from mfabian@novell.com 2007-01-16 11:15 MST ------- INVALID. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com