Why isn't wchar_t widely used in code for Linux / related platforms?

Posted by Ninefingers on Stack Overflow See other posts from Stack Overflow or by Ninefingers
Published on 2011-01-03T20:57:57Z Indexed on 2011/01/03 22:54 UTC
Read the original article Hit count: 333

Filed under:
|
|

This intrigues me, so I'm going to ask - for what reason is wchar_t not used so widely on Linux/Linux-like systems as it is on Windows? Specifically, the Windows API uses wchar_t internally whereas I believe Linux does not and this is reflected in a number of open source packages using char types.

My understanding is that given a character c which requires multiple bytes to represent it, then in a char[] form c is split over several parts of char* whereas it forms a single unit in wchar_t[]. Is it not easier, then, to use wchar_t always? Have I missed a technical reason that negates this difference? Or is it just an adoption problem?

© Stack Overflow or respective owner

Related posts about c

    Related posts about unicode