Mail Archives: djgpp/2000/08/25/18:40:38
On Fri, 25 Aug 2000 02:44:18 -0400, Radical NetSurfer
<radsmail AT juno DOT com> wrote:
>Tonight we had to create our very own code for
>
>strupr
>
>simply because DJGPP does NOT implement this function
>correctly at ALL :(
>
>experiment strupr():
>
>"abcédef" --> "ABCéDEF" expected! BORLAND: CORRECT!
Reminds me of "pokémon" --> "POKéMON"
>2) an ACCURATE and properly implemented method of ACTUALLY
>converting Upper/Lower FOREIGN character set should be implemented.
This would require tons of locale support (is it in DJGPP?) for
different codepages (DOS uses 437 or 850; Windows uses 1252; Allegro
uses UTF-8 Unicode...)
>(ah, Mr. Wizard, sir, how do we know an ASCII char represents a
>foreign character, please?)
[snip]
>-------------- problem #2 getw() --------------
>
>also, getw is defined in LIBC.TXT as:
>
>int getw(FILE *file);
>
>this is INCORRECT!
>
>get-WORD() should of been defined as:
>
>short getw(FILE*);
>
>as a WORD is "typically/natively" DEFINED AS 16-BIT!
Look at the proto for fgetc() and see what it returns.
C:\>info libc a fgetc
Then you might understand better.
--
MS (n) 1. A debilitating and surprisingly widespread
affliction that renders the sufferer barely able to
perform the simplest task. 2. A disease, multiple
sclerosis (see).
This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses. http://www.mcafee.com/
- Raw text -