git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] precompompose_utf8.c: iconv_open_or_die

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Aug 22, 2012, 06:13 UTC
Message-ID
<CACsJy8AqtsUJT7ukfn4PpT+Huy-SHPwiBNyO1r=3RFHKUjuTfA@mail.gmail.com>
In-Reply-To
<201208212120.56444.tboegi@web.de>
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
Previous: Torsten Bögershausen
Message 2 of 2 in “precompompose_utf8.c: iconv_open_or_die”
  1. precompompose_utf8.c: iconv_open_or_dieTorsten Bögershausen, Aug 21, 2012
  2. Nguyen Thai Ngoc DuyAug 22, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.