Bug in graphics.library, diskfont.library or charset mappings

This forum is for general developer support questions.
Post Reply
softwarefailure
Posts: 103
Joined: Fri Feb 14, 2014 10:29 pm

Bug in graphics.library, diskfont.library or charset mappings

Post by softwarefailure »

Yesterday I discovered some strange behaviour in MUI and reported about it here: http://muidev.de/ticket/434 However, as it turned out, the bug is not in MUI but in OS4 because everything application shows the behaviour on OS4.

Basically, it's this: When using ISO 8859-1 charset, the character 0xa6 (¦) isn't drawn correctly. It is drawn as an "Š" character (that isn't even in ISO 8859-1!). Here's what it looks like on OS4:

Image

And this is what it should look like:

Image

!!! Note that this is not a font problem. It happens even when using the very same bitmap font on OS3 and OS4. On OS3 (and MorphOS) it's correct, on OS4 it isn't !!!

Here's the test text file:
https://easyupload.io/qfaigv

User avatar
nbache
Beta Tester
Beta Tester
Posts: 1461
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Bug in graphics.library, diskfont.library or charset mappings

Post by nbache »

Try reading the first few paragraphs of this page:

https://en.wikipedia.org/wiki/ISO/IEC_8859-15

Then check your Locale settings; I'd be pretty sure you have chosen ISO-8859-15 (Latin 9) as your system charset under OS4.

Best regards,

Niels

P.S. The easy way to check (without downloading files) is to issue this in a Shell:

rx "say copies(x2c('A6'), 50)"

softwarefailure
Posts: 103
Joined: Fri Feb 14, 2014 10:29 pm

Re: Bug in graphics.library, diskfont.library or charset mappings

Post by softwarefailure »

Right, that was it, thanks!

Post Reply