FreeBSD Bugzilla – Attachment 173530 Details for
Bug 211743
[PATCH] newlocale() and/or uselocale() not working properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Reproduce newlocale/uselocale problem
freebsd.c (text/x-csrc), 391 bytes, created by
Karl Williamson
on 2016-08-10 23:52:43 UTC
(
hide
)
Description:
Reproduce newlocale/uselocale problem
Filename:
MIME Type:
Creator:
Karl Williamson
Created:
2016-08-10 23:52:43 UTC
Size:
391 bytes
patch
obsolete
>#include <stdio.h> >#include <locale.h> >#include <string.h> > >int >main(int argc, char **argv) >{ > > int i; > locale_t C_locale_object = newlocale(LC_ALL_MASK, "C", NULL); > > setlocale(LC_MESSAGES, "be_BY.UTF-8"); > > uselocale(C_locale_object); > > for (i=1; i < 10; i++) { > /* This should print using the C locale, hence in ASCII */ > printf("%s\n", strerror(i)); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 211743
: 173530 |
173973
|
173974
|
190563
|
190564
|
190565