Re: [PATCH] precompompose_utf8.c: iconv_open_or_die

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

 



On Wed, Aug 22, 2012 at 2:20 AM, Torsten Bögershausen <tboegi@xxxxxx> wrote:
> +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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]