Re: [PATCH] precompompose_utf8.c: iconv_open_or_die
On Wed, Aug 22, 2012 at 2:20 AM, Torsten Bögershausen <tboegi@web.de> wrote:
Show 8 quoted lines
> +static iconv_t iconv_open_or_die(const char* tocode, const char* fromcode)
> +{
> + iconv_t my_iconv;
> + my_iconv = iconv_open(tocode, fromcode);
> + if (my_iconv == (iconv_t) -1) {
> + die(_("iconv_open(%s,%s) failed, but needed:\n"
> + " core.precomposeunicode not supported.\n"),
> + repo_encoding, path_encoding);You might want to use die_errno.
> + }
> +
> + return my_iconv;
> +}
--
Duy