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

Re: [PATCH 003/160] gettext: fix bug in git-sh-i18n's eval_gettext() by using envsubst(1)

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Nov 14, 2010, 18:16 UTC
Message-ID
<20101114181605.GI26459@burratino>
In-Reply-To
<1289747245-23263-3-git-send-email-avarab@gmail.com>
Ævar Arnfjörð Bjarmason wrote:
Show 22 quoted lines
> These are the modifications I made to envsubst.c as I turned it into
> sh-i18n--envsubst.c:
> 
>  * Added our git-compat-util.h header for xrealloc() and friends.
> 
>  * Removed inclusion of gettext-specific headers.
> 
>  * Removed most of main() and replaced it with my own. The modified
>    version only does option parsing for --variables. That's all it
>    needs.
> 
>  * Modified error() invocations to use our error() instead of
>    error(3).
> 
>  * Replaced the gettext XNMALLOC(n, size) macro with just
>    xmalloc(n). Since XNMALLOC() only allocated char's.
> 
>  * Removed the string_list_destroy function. It's redundant (also in
>    the upstream code).
> 
>  * Replaced the use of stdbool.h (a C99 header) by doing the following
>    replacements on the code:
Nit: can this be moved to a subdir?  Maybe po or i18n, or even
envsubst.  This could make it clearer that the code has an upstream
and should be updated when upstream is.
Jonathan
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 5 of 12 in “[PULL] ab/i18n rebased on ab/i18n-prereqs”
  1. 000/160 [PULL] ab/i18n rebased on ab/i18n-prereqsÆvar Arnfjörð Bjarmason, Nov 14, 2010
  2. 002/160 Makefile: Set NO_GETTEXT=YesPlease on Windows & MinGWÆvar Arnfjörð Bjarmason, Nov 14, 2010
  3. Erik Faye-LundNov 15, 2010
  4. 003/160 gettext: fix bug in git-sh-i18n's eval_gettext() by using envsubst(1)Ævar Arnfjörð Bjarmason, Nov 14, 2010
  5. Jonathan NiederNov 14, 2010
  6. Junio C HamanoNov 14, 2010
  7. Ævar Arnfjörð BjarmasonNov 14, 2010
  8. Jonathan NiederNov 14, 2010
  9. Ævar Arnfjörð BjarmasonNov 14, 2010
  10. Jonathan NiederNov 14, 2010
  11. Ævar Arnfjörð BjarmasonNov 14, 2010
  12. Ævar Arnfjörð BjarmasonNov 16, 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.