Lines Matching refs:local_encoding
47 static const char *local_encoding, *data_encoding, *internal_encoding; variable
50 # define local_encoding get_local_encoding() macro
79 local_encoding = getenv("FREECIV_LOCAL_ENCODING"); in init_character_encodings()
80 if (!local_encoding) { in init_character_encodings()
82 local_encoding = locale_charset(); in init_character_encodings()
85 local_encoding = nl_langinfo(CODESET); in init_character_encodings()
87 local_encoding = ""; in init_character_encodings()
90 if (fc_strcasecmp(local_encoding, "ANSI_X3.4-1968") == 0 in init_character_encodings()
91 || fc_strcasecmp(local_encoding, "ASCII") == 0 in init_character_encodings()
92 || fc_strcasecmp(local_encoding, "US-ASCII") == 0) { in init_character_encodings()
95 local_encoding = "ISO-8859-1"; in init_character_encodings()
98 if (fc_strcasecmp(local_encoding, "646") == 0) { in init_character_encodings()
102 local_encoding = "UTF-8"; in init_character_encodings()
114 internal_encoding = local_encoding; in init_character_encodings()
124 data_encoding, local_encoding, internal_encoding); in init_character_encodings()
155 return local_encoding; in get_local_encoding()