Reputation: 13
Does the _UNICODE
definition exist in linux C?
If it doesn't exist, is there an equivalent?
Upvotes: 1
Views: 120
Reputation: 58617
The core libraries in a GNU/Linux system do not support Microsoft-style ANSI/Unicode switching. There is nothing like the TCHAR
type which goes to CHAR
or WCHAR
.
If you want wide characters, you explicitly use wchar_t
and functions which use it.
There is a widespread practice of continuing to use char
strings, but with UTF-8 encoding.
Internationalized programs either do that or use wchar_t
or some mixture of the two.
Upvotes: 3