4 /* This struct of default codesets has been generated by fetching
5 locale data from a Linux system using $(rpm -q glibc | head -1) on $(date +%F) */
6 struct default_codeset_t
15 if ( index ($1, "_") == 0 ) next # No aliases
16 if ( index ($1, ".") > 0 ) next # No explicit codesets
18 cmd = "LC_CTYPE=" locale " locale -ck LC_CTYPE | grep charmap"
20 codeset = gensub (/charmap="(.*)"/, "\\1", 1, codeset)
21 codeset = gensub (/BIG5.*/, "BIG5", 1, codeset);
22 printf " { \"%s\", \"%s\" },\n", locale, codeset;