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

Re: [PATCH/RFC 0/2] use libcharset.h with gettext if available

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Sep 28, 2010, 21:47 UTC
Message-ID
<AANLkTinxSqPD8H4Giigb1vbi7DC2wpDVqWmXGVZXmeKQ@mail.gmail.com>
In-Reply-To
<1285698577-28395-1-git-send-email-avarab@gmail.com>

On Tue, Sep 28, 2010 at 8:29 PM, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:

Show 8 quoted lines
> Yeah, I'm hoping it'll get into next soon so we can get more
> reports/fixes like these. Anyway, I amended your patches a bit, here
> are the changes:
>
>  * Split up the s/char*/const char*/ change into its own patch, or is
>   there a reason for why this needs to be there along with the
>   libcharset.h change?
>

The reason was that my version of locale_charset() returns a const char *, so I got a warning if I didn't. nl_langinfo() returns a char *, so I don't think that constness-fix patch makes sense in itself. But what might make more sense would be to squash it into the original commit for that line.

>  * Added docs about the define to the Makefile
>
Nice!
>  * Added defaults for NO_LIBCHARSET to the default, I only changed the
>   defaults for the MINGW entry, maybe it should be changed on Cygwin
>   and Windows too? And probably on OpenBSD and NetBSD too.
>

I don't think NO_LIBCHARSET should be the default. libcharset is reported to be a bit better than nl_langinfo at normalizing the encoding, and GNU gettext depends on libcharset (through libiconv, which libcharset is distributed with). So in the case of a GNU gettext, libcharset should really be present.

Show 17 quoted lines
> Erik Faye-Lund (2):
>  gettext: use const char* instead of char*
>  gettext: use libcharset when available
>
>  Makefile     |   17 +++++++++++++++++
>  configure.ac |    6 ++++++
>  gettext.c    |   10 +++++++++-
>  3 files changed, 32 insertions(+), 1 deletions(-)
>
> --
> 1.7.3.159.g610493
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 5 of 12 in “gettext: use libcharset when available”
  1. gettext: use libcharset when availableErik Faye-Lund, Sep 28, 2010
  2. Ævar Arnfjörð BjarmasonSep 28, 2010
  3. Erik Faye-LundSep 28, 2010
  4. 0/2 use libcharset.h with gettext if availableÆvar Arnfjörð Bjarmason, Sep 28, 2010
  5. Erik Faye-LundSep 28, 2010
  6. Ævar Arnfjörð BjarmasonSep 29, 2010
  7. Erik Faye-LundSep 29, 2010
  8. gettext: use libcharset when availableÆvar Arnfjörð Bjarmason, Sep 29, 2010
  9. Erik Faye-LundSep 29, 2010
  10. gettext: use libcharset when availableÆvar Arnfjörð Bjarmason, Sep 29, 2010
  11. gettext: use libcharset when availableÆvar Arnfjörð Bjarmason, Sep 29, 2010
  12. 1/2 gettext: use const char* instead of char*Ævar Arnfjörð Bjarmason, Sep 28, 2010

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.