tech-pkg archive

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

Re: proper way to handle ICONV_TRANSLIT on NetBSD (and other platforms)



On Tue, 03 Jul 2012 05:17:52 +0900, Blair Sadewitz 
<blair.sadewitz%gmail.com@localhost> wrote:

Hello,

I was updating devel/tig to version 1.0, and after obligatorily
banging my head against my desk and feeling clueless, I think I
figured out at least one issue:

https://github.com/jonas/tig/commit/0b00b4de2bbb672d154dccef4a2b82e5d62fb93e

 Add "//TRANSLIT" for iconv encoding

[ jf: changed to use stack allocated buffer ]

Signed-off-by: Jonas Fonseca <fonseca%diku.dk@localhost>


Now, there could be other problems, but it ultimately dies with
"failed to initialize character set conversion".

What is the proper way to fix this?  I'd rather know more instead of
simply copying what other people have done.

I feel it will never fallback to TRANSLIT-less iconv_open :(
because string_format should usually succeed.
--
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index