repo.or.cz
/
libiconv.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updated translations.
[libiconv.git]
/
libcharset
/
tools
/
locale_codeset.c
blob
a9c209d6d0fe1bafc6c5c20960197822ce3789b8
1
/* Prints the system dependent name for the current locale's codeset. */
2
3
#define _XOPEN_SOURCE 500
/* Needed on AIX 3.2.5 */
4
5
#include <stdio.h>
6
#include <stdlib.h>
7
#include <locale.h>
8
#include <langinfo.h>
9
10
int
main
()
11
{
12
setlocale
(
LC_ALL
,
""
);
13
printf
(
"%s
\n
"
,
nl_langinfo
(
CODESET
));
14
exit
(
0
);
15
}