On 19/12/06, Andreas Jellinghaus <[EMAIL PROTECTED]> wrote:
stef, peter: I left two files out becuse I wasn't sure if it would be
ok: card-belpic.c and netkey-tool.c both have several strings that are
printed (I guess at least) in iso8859-1 encoding. if we convert those
to utf-8, will it still work? or do we need a flexible system (i.e.
i18n and l10n opensc so the string is converted to the local encoding
by some lib)? - so far I have very little clue about all that.

what do you suggest we should do?

I had a look at card-belpic.c. It uses latin1 strings so will only
work with latin1 locale encodings. I use LANG=fr_FR.UTF-8 so it will
not display correctly for me.

The problem is that it is not easy to convert from one encoding to
another. gettext does this for you for i18n and l10n. iconv can also
be used but you need to know the user locale encoding (this is
automatically done by gettext using LANG).

In card-belpic.c it looks like the strings are displayed by an SCR(?)
reader: function SCR_SCardPIN(). So maybe latin1 is the correct
encoding to use for the reader.

Which reader is concerned by that feature exactly?

Bye,

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to