This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/23076] Iconv translitterate with profile


https://sourceware.org/bugzilla/show_bug.cgi?id=23076

--- Comment #13 from Laurent Lyaudet <Laurent.Lyaudet at gmail dot com> ---
Hello,

I tried to use charmap as you suggested but I did not succeed.
I also finished my library transliteration_profile_iconv.
It is available here :
https://github.com/LLyaudet/transliteration_profile_iconv.
It solves the problem of tight coupling with locales.
Can you help me for the benchmark and/or give me feedback on my library?
I tried to benchmark my library against glibc iconv to see how much slower my
library was, compared to glibc.
Here is what I tried :

I edited a locale definition file fr_FR@test in this directory (the Makefile
puts it in the correct directory on Debian).
I edited a charmap definition file ISO-8859-1-test in this directory (the
Makefile puts it in the correct directory on Debian).
The makefile then edits the file /etc/locale.gen and executes locale-gen.
Everything so far goes well.
But iconv_open() below fails because there is no gconv module for
ISO-8859-1-test.
If I rename ISO-8859-1-test everywhere with ISO-8859-1 which I don't recommend
(make copies of the correct files for ISO-8859-1) iconv_open() works but
iconv() does not transliterate as specified by the fr_FR@test file.
(You can check that the setlocale is correct since it returns "fr_FR@test".
Euro symbol is transliterated to EUR instead of the currency symbol...
What I could test with PHP is not working with C.)
I tried also adding the locale in /usr/share/i18n/SUPPORTED,
then running locale-gen and iconvconfig.
But it didn't generate a new gconv module for ISO-8859-1-test.
So far I don't know if it's possible to generate a new gconv module for a new
charmap without compiling glibc.
I didn't found any command to do so.

Thanks, best regards,
   Laurent Lyaudet

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]