hello,
I'm trying to get my FreeBSD PC to be in AZERTY so I can write proper French with accents and everything.
How do I do this?
I've tried making a small program called locale.c, which includes `<locale.h>` and uses the `setlocale(LC_ALL, "fr")` function, but I'm having the following errors when I try to compile it:
I'm trying to get my FreeBSD PC to be in AZERTY so I can write proper French with accents and everything.
How do I do this?
I've tried making a small program called locale.c, which includes `<locale.h>` and uses the `setlocale(LC_ALL, "fr")` function, but I'm having the following errors when I try to compile it:
Code:
/usr/include/locale.h:66:17: note: expanded from macro 'LC_ALL'
66 | #define LC_ALL 0
| ^
locale.c:3:11: error: expected ')'
/usr/include/locale.h:66:17: note: expanded from macro 'LC_ALL'
66 | #define LC_ALL 0
| ^
locale.c:3:10: note: to match this '('
3 | setlocale(LC_ALL, "fr");
| ^
locale.c:3:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
3 | setlocale(LC_ALL, "fr");
| ^
| int
locale.c:3:1: warning: a function declaration without a pr
[CODE]locale.c:3:11: error: expected parameter declarator
3 | setlocale(LC_ALL, "fr");
| ^
/usr/include/locale.h:66:17: note: expanded from macro 'LC_ALL'
66 | #define LC_ALL 0
| ^
locale.c:3:11: error: expected ')'
/usr/include/locale.h:66:17: note: expanded from macro 'LC_ALL'
66 | #define LC_ALL 0
| ^
locale.c:3:10: note: to match this '('
3 | setlocale(LC_ALL, "fr");
| ^
locale.c:3:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
3 | setlocale(LC_ALL, "fr");
| ^
| int
locale.c:3:1: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype]
/usr/include/locale.h:80:8: note: conflicting prototype is here
80 | char *setlocale(int, const char *);
| ^
locale.c:3:1: error: conflicting types for 'setlocale'
3 | setlocale(LC_ALL, "fr");
| ^
/usr/include/locale.h:80:8: note: previous declaration is here
80 | char *setlocale(int, const char *);
| ^
2 warnings and 3 errors generated.