Opened 13 years ago

Closed 12 years ago

#7142 closed bug (fixed)

Missing support for iso-8859-15

Reported by: Karvjorm Owned by: pulkomandy
Priority: normal Milestone: R1
Component: Kits/Locale Kit Version: R1/Development
Keywords: ISO-8859-15 encoding support Cc: Karvjorm
Blocked By: Blocking:
Platform: All

Description

When you look at the enclosed figure, you can see, that currency is wrong in the bottom-right corner of the Finnish Locale settings. Previously encoding ISO-8859-1 was used as a default encoding in Finland and in many other Western European countries. But when currency changed from franc, mark etc. to euro, this all changed. In Finland this change happened at the beginning of year 2002. ISO-8859-15 was selected as default encoding, because it is supporting Euro sign and ISO-8859-1 is not supporting it.

In enclosing figure it looks like Haiku is trying to show Euro sign using ISO-8859-1 encoding. Therefore, I would like that Haiku should support ISO-9958-15 (or Latin-9, as it is also called) as well.

I have enclosed here a Latin-9 patch for STXTTranslator (but I'm not sure, if this patch is correct). I hope, this should be the first step to right direction.

br, Karvjorm

Attachments (2)

locale-error1.png (43.9 KB ) - added by Karvjorm 13 years ago.
Wrong currency sign in Finnish locale setting
stxttranslator-latin9.patch (3.2 KB ) - added by Karvjorm 13 years ago.
A Latin-9 (ISO-8859-15) patch for STXTTranslator

Download all attachments as: .zip

Change History (6)

by Karvjorm, 13 years ago

Attachment: locale-error1.png added

Wrong currency sign in Finnish locale setting

by Karvjorm, 13 years ago

Attachment: stxttranslator-latin9.patch added

A Latin-9 (ISO-8859-15) patch for STXTTranslator

comment:1 by Karvjorm, 13 years ago

patch: 01

comment:2 by anevilyak, 13 years ago

Component: - GeneralKits/Locale Kit
Owner: changed from nobody to pulkomandy
Version: R1/alpha2R1/Development

That dialog should actually be using UTF-8, the ISO-* encodings aren't used unless an app explicitly requests a conversion, as the OS uses UTF system-wide, so chances are it's problem somewhere else.

comment:3 by zooey, 13 years ago

Actually, the Locale dialog works ok - the seemingly strange symbol your seeing is representing the generic/unknown currency. As shown in the screenshot, you have selected "suomi", which just is the Finnish language, without any specific country. In order to get the proper currency, you need to open the suomi "folder" and select the Finnish as relevant to Finnland. If you do so, you'll see that the Euro sign will be used as currency symbol.

I know it may be a bit confusing and perhaps we should simplify the dialog such that folders with only one country inside will promote that country to the top level.

Anyway, this has nothing to do with the provided patch, which might still be valid and useful.

comment:4 by pulkomandy, 12 years ago

Resolution: fixed
Status: newclosed

This patch will not help with a non-existing issue. Detecting the difference between latin-1 and latin-9 is next to impossible, and only changes one single character (ÿ for €).

Note: See TracTickets for help on using tickets.