[BRLTTY] charset.c:getWcharCharset()

Samuel Thibault samuel.thibault at ens-lyon.org
Sat Mar 10 18:29:59 EST 2007


Hi,

Mario Lang, le Sun 11 Mar 2007 00:28:47 +0100, a écrit :
>     snprintf(charset, sizeof(charset), "UCS-%u%cE",
>              sizeof(wchar_t),

Ah.

Well, there is %zu which is supposed to print size_t, but it's not
supported by all libcs, so the most portable way is to just cast the
sizeof into (unsigned long) and then use %lu.

Samuel


More information about the BRLTTY mailing list