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

Re: [PATCH] send-email: Use setlocale in addition to $ENV{LC_ALL} to set locale

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 21, 2006, 11:18 UTC
Message-ID
<e7b9u7$974$1@sea.gmane.org>
In-Reply-To
<20060621104941.GB15748@localdomain>
Eric Wong wrote:
> Jakub Narebski <jnareb@gmail.com> wrote:
>> 
>>> $ENV{LC_ALL} = 'C'; does not change locale used by strftime.
>>> Use setlocale( &LC_ALL, 'C' ); instead.
> I'm responsible for the $ENV{LC_ALL} = 'C' setting but I never actually
> tested how things would work with a non-English locale (not being
> well-versed in these things myself, either).

It looks like I have broken locale badly somewhat, as I yesterday sent patches successfully without the patch. I suspect that sendmail removes incorrect Date: header and adds it's own... unless Date: header contains characters outside US-ASCII.

It means that sendmail can deal with
  Date: wto, 20 cze 2006 13:14:11 +0200
instead of correct
  Date: Tue, 20 Jun 2006 13:14:11 +0200
but cannot deal with (iso-8859-2 encoded I think)
  Date: ¶ro, 21 cze 2006 09:48:02 +0200
from git-send-email.perl without patch, instead of correct
  Date: Wed, 21 Jun 2006 11:25:52 +0200
with the patch.
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Eric WongNext: Junio C Hamano
Message 6 of 7 in “Re: [PATCH 1/3] gitweb: whitespace cleanup”
  1. Jakub NarebskiJun 21, 2006
  2. Junio C HamanoJun 21, 2006
  3. send-email: Use setlocale in addition to $ENV{LC_ALL} to set localeJakub Narebski, Jun 21, 2006
  4. Jakub NarebskiJun 21, 2006
  5. Eric WongJun 21, 2006
  6. Jakub NarebskiJun 21, 2006
  7. Junio C HamanoJul 3, 2006

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.