Subject: Re: Enhanced locale support for 1.4
To: Jason Thorpe <email@example.com>
From: Noriyuki Soda <firstname.lastname@example.org>
Date: 06/22/1999 23:06:49
> > Both ISO-C standard Ammendment.1 and proposed C99 DIS says that if a
> > user requests, FILE includes the current parse state which represents
> > multibyte character to wide character translation state,
> Well... you can cheat, here :-)
> Since the internal members of FILE aren't available to users, you don't
> *have* to keep this info *directly* in FILE. It would be another structure
> logically associated with a given instance of a FILE. You could reference
> these other structures in a hash table, using a FILE * as a value to hash
> for the lookup.
Mm, this member will be accessed from fgetwc() and friends,
thus performance is really important.
I believe it should be included in FILE struct, at least when
we bump the version of libc.
But probably we can use the workaround you said until libc version
is bumped. Thanks.