GLBasic forum

Main forum => Bug Reports => Topic started by: Moru on 2010-Jun-27

Title: UCASE and International chars
Post by: Moru on 2010-Jun-27
Can't believe I didn't see this until now but UCASE and LCASE does not handle international characters. Any chance of a fix or should I do it myself? :-)
Title: Re: UCASE and International chars
Post by: Kitty Hello on 2010-Jun-28
Oh - you mean... â and é ?
I think I need a list of characters you want upper/lowercase enabled.
Title: Re: UCASE and International chars
Post by: Moru on 2010-Jun-28
You do it the same way as the rest of the alphabet. The last 64 characters (almost all of them) you just add 32 to make lower case, remove 32 to make upper case. Take a look in DiNGSFont and you will see what I mean.

Should be this range for the international characters that has upper/lower case
0xC0 - 0xDF = Upper case
0xE0 - 0xFF = Lower case

I'm not sure about 0xD7/0xF7 and 0xDF/0xFF (that german sharp S or whatever :-)

Title: Re: UCASE and International chars
Post by: MrTAToad on 2010-Jun-28
Doesn't strupr work with international character sets?