Page 2 of 2

Re: Ucase() fails with UTF

Posted: Sun Jul 16, 2023 7:22 pm
by Demivec
Olli wrote: Sun Jul 16, 2023 10:18 am But... Who has adopted the black horse in the chess set ? :lol:
Batman?

Re: Ucase() fails with UTF

Posted: Tue Jul 18, 2023 1:54 am
by Olli
:lol:

I used it

Code: Select all

*cm\cm('♞') = 0   ; We insure ourselves we keep the horse...
...here...

Re: Ucase() fails with UTF

Posted: Wed Jul 19, 2023 10:48 am
by Torf
I attach a screenshot:

https://ibb.co/yfSJTL3

Re: Ucase() fails with UTF

Posted: Fri Jul 21, 2023 10:11 am
by idle
Torf wrote: Wed Jul 19, 2023 10:48 am I attach a screenshot:

https://ibb.co/yfSJTL3
Sorry for delay in reply, that does look odd. What is your OS version?

Re: Ucase() fails with UTF

Posted: Fri Jul 21, 2023 10:44 am
by Torf
idle wrote: Fri Jul 21, 2023 10:11 am
Torf wrote: Wed Jul 19, 2023 10:48 am I attach a screenshot:

https://ibb.co/yfSJTL3
Sorry for delay in reply, that does look odd. What is your OS version?
I'm using a macbook with chip Intel and macOS Monterey, v.12.6.3

In Windows 10 and Windows XP it runs ok, the problem I only see with macOS (I didn't test it with Linux)

Re: Ucase() fails with UTF

Posted: Fri Jul 21, 2023 1:47 pm
by Sicro
@Torf

What are the outputs for the following code?

Code: Select all

Debug Asc("ñ")
Debug Asc(UCase("ñ"))

Code: Select all

; Download from https://dnscope.io/idlefiles/UTF16.pb
IncludeFile "UTF16.pb"

Define text$ = "ñ"
UTF16::StrUCase(text$)
Debug text$

Re: Ucase() fails with UTF

Posted: Sat Jul 22, 2023 10:40 am
by Torf
Sicro wrote: Fri Jul 21, 2023 1:47 pm @Torf

What are the outputs for the following code?

Code: Select all

Debug Asc("ñ")
Debug Asc(UCase("ñ"))
https://ibb.co/1QWK07K

Code: Select all

; Download from https://dnscope.io/idlefiles/UTF16.pb
IncludeFile "UTF16.pb"
Define text$ = "ñ"
UTF16::StrUCase(text$)
Debug text$
https://ibb.co/Lv5Wp9q
I paste screenshots below each question.

Re: Ucase() fails with UTF

Posted: Sat Jul 22, 2023 10:55 am
by idle
Think you should try to update to pb 6.02 lts or 6.03. Something isn't right

Re: Ucase() fails with UTF

Posted: Tue Jul 25, 2023 11:16 am
by Torf
idle wrote: Sat Jul 22, 2023 10:55 am Think you should try to update to pb 6.02 lts or 6.03. Something isn't right
https://ibb.co/yqGqTxW