Subject: Re: isprint()
To: None <current-users@NetBSD.ORG>
From: Ty Sarna <tsarna@endicor.com>
List: current-users
Date: 08/20/1996 12:59:41
In article <199608190135.VAA01589@Collatz.McRCIM.McGill.EDU>,
der Mouse <mouse@Holo.Rodents.Montreal.QC.CA> wrote:
> > Ideally, the kernel would inherit this change; the behavior of stty
> > lcase will be wrong otherwise, I [believe].
>
> How _could_ the kernel know what some user process thinks constitutes
> uppercase or lowercase? And even if you grant that, arguendo, which
> process's idea of "printable" should it use?
>
> The only way I see to make this work at all is for the kernel to have
> its own idea of what constitutes printable, lowercase, uppercase, etc,
> and have some way for stty to load those tables, or at least switch
> among a few compiled-in tables. (Perhaps some of the commonest, such
> as US-ASCII and ISO 8859-1, should be compiled in, with an escape so
> stty can cause the kernel to allocate a block of memory to hold
> arbitrary tables in case of something more esoteric.)
Um, actually you need to ask a more basic question: why the hell would
you want lcase to be locale specific anyway? lcase exists for seriously
ancient, decrepit terminal that don't support the characters a-z. It is
_highly_ doubtful that such terminals support national characters
anyway.