glibc/tests/Regression/bz799853-Slovakia-uses-Euro-as-currency/testcase.c
Sergey Kolosov ab4bc8a24e Extend the test coverage
Move some of the RHEL QE testcases upstream to Fedora.
2022-05-31 09:29:27 +02:00

16 lines
367 B
C

#include <stdio.h>
#include <locale.h>
int main()
{
if( setlocale(LC_MONETARY, "") == NULL ) {
puts("Cannot set locale");
return 1;
} else {
struct lconv *l = localeconv();
printf("Local currency symbol: %s\n", l->currency_symbol);
printf("International currency symbol: %s\n", l->int_curr_symbol);
}
return 0;
}