LC_LANG now works as a fallback properly
This commit is contained in:
24
cmd/locale/main.ha
Normal file
24
cmd/locale/main.ha
Normal file
@@ -0,0 +1,24 @@
|
||||
use fmt;
|
||||
use locale;
|
||||
|
||||
export fn main() void = {
|
||||
let ctype = locale::format(locale::get_ctype());
|
||||
defer free(ctype);
|
||||
let collate = locale::format(locale::get_collate());
|
||||
defer free(collate);
|
||||
let monetary = locale::format(locale::get_monetary());
|
||||
defer free(monetary);
|
||||
let numeric = locale::format(locale::get_numeric());
|
||||
defer free(numeric);
|
||||
let time = locale::format(locale::get_time());
|
||||
defer free(time);
|
||||
let messages = locale::format(locale::get_messages());
|
||||
defer free(messages);
|
||||
|
||||
fmt::printf("LC_CTYPE={}\n", ctype)!;
|
||||
fmt::printf("LC_COLLATE={}\n", collate)!;
|
||||
fmt::printf("LC_MONETARY={}\n", monetary)!;
|
||||
fmt::printf("LC_NUMERIC={}\n", numeric)!;
|
||||
fmt::printf("LC_TIME={}\n", time)!;
|
||||
fmt::printf("LC_MESSAGES={}\n", messages)!;
|
||||
};
|
||||
Reference in New Issue
Block a user