Long Chars

Doug Gwyn gwyn at brl-smoke.ARPA
Sun Mar 13 18:11:59 AEST 1988


In article <12341 at brl-adm.ARPA> TLIMONCE%DREW.BITNET at CUNYVM.CUNY.EDU writes:
>The "short char vs char" problem can't be solved very easily.  Why not a
>"long char".

This was basically what the Japanese originally requested.  The main
drawback is that any code that handles text characters (i.e. most
applications!) would have to be changed to use long-chars in order to
work in an international environment, and there would have to be
long-char versions of the usual string handling functions.  The
short-char proposal does not suffer from this drawback because a
char is already the right size to hold a text unit.  Its only
problem is that a fair amount of code has been written dependent on
the assumption that sizeof(char)==1, although some programmers have
been careful not to assume that all along.



More information about the Comp.lang.c mailing list