[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnu-libiconv] Why iconv is locale dependent?
From: |
Bruno Haible |
Subject: |
Re: [bug-gnu-libiconv] Why iconv is locale dependent? |
Date: |
Mon, 02 Jan 2017 19:21:37 +0100 |
User-agent: |
KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; ) |
Hi,
> I am writing you because I couldn't understand why iconv (and libiconv
> also, I suppose) is locale-dependent.
Short answer: Because different cultures have different conventions.
For example, Gorbatchov (English) is Gorbatschow (in German) or
Gorbatchev (in French).
In glibc, you find the transliteration rules per locale in
https://sourceware.org/git/?p=glibc.git;a=tree;f=localedata/locales
libiconv, on the other hand, is simpler: it does not have locale-
dependent transliteration. This is more a misfeature than a feature.
Bruno