monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] avoid iconv differences [Was: Tests passing!]


From: Lapo Luchini
Subject: [Monotone-devel] avoid iconv differences [Was: Tests passing!]
Date: Fri, 02 Mar 2007 15:23:01 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20070129)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nathaniel Smith wrote:
> I guess we always want question marks, we're going to have to insert
> them by hand in at least some cases, and we'd rather not deal with all
> of this insanity.  So maybe we should consider:
>   -- try opening our iconv handle with //TRANSLIT
>   -- if that fails, try opening it the normal way (to account for any
>      systems that just don't know //TRANSLIT)
>   -- when we actually process bytes using this iconv handle, do
>      poor-man's-TRANSLIT handling -- whenever iconv says EILSEQ or
>      EINVAL, then dump a question mark to output, advance the input,
>      and try again.
> 
> This seems like it might be the minimal necessary-and-sufficient code?

Seems a good & clean approach to me.
I'll pursue it ASAP (a few days worth of bus-travels from and to my
workplace).
I have to remember that "skip" in this case is not "++pos", but rather
"pos+=utf8_char_len(pos);" (for an hypothetical utf_char_len function).

    Lapo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJF6DNEAAoJELBiMTth2oCDyh4P/0H5JtROQyebTb7tjAqJImwG
5At35OAYObJIvWjrjfbu6rBHSThrOqKiAsp8dDyAeixoFDSdxxCyXmBN3vOtvUun
lOXylL3MguYCcnR+3O2tSQxg2/p7ja8PWuEmy29qSQg+H3GpQM9rZfrwp6aHLyFP
UqgrvPkL4PQK3Y/dZ8wLuxw9L3BNpai9LRHQ7zFOd90bOq5Ena6yGiaIPV+9C92/
grGDYm6ovCz+sSp2OoZstV0NBrCio2u+P75ha6Hv+Kluca3I7BlU+Bqbi5i7QXPo
ythRvqIAd3X/Kl4tR1FwGnHb5H6dvAmZ0QdVdABLPOCYfl5lg9GvgXBmdpeB/1Bc
HN1Oud4N/wDpEtdbGaBDoZnrdb+DkHhG2OUUAgiotmdfBd0cg8sqM/fTTebWAGBD
pCnV2FwYnPIvlgsl6nhU3jfS2k8IPodS6FraEYbseaZn9mcudSQt9oozGQ+JomIf
2vcG/15yE31cUcW9YN0ovVFwuH7+IiWCdDMd7k4woyiJHM3QjBp5E/M+QYH4o0J7
518eCiMOcMcE2WdHi1d7U3oCnSyK5Cb0B8Bx9UxGJWl6mU9/Mz5Hslls/KZoBDGw
kNrN6yXx76Omu2dA575bWB4x9Qyb1HVxJqEmrCCDbur346FOY3SSzoMidTkA0LRs
Lz8mdk0Lgt8hCSbsh8qL
=AIG+
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]