25 lines
751 B
Hare
25 lines
751 B
Hare
|
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)!;
|
||
|
};
|