Skip to Content.
Sympa Menu

devel - [sympa-dev] Re: strftime and encoding (was Charset/encoding for e-mail message)

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Olivier Salaün - CRU <address@concealed>
  • To: Hatuka*nezumi - IKEDA Soji <address@concealed>
  • Cc: address@concealed
  • Subject: [sympa-dev] Re: strftime and encoding (was Charset/encoding for e-mail message)
  • Date: Fri, 03 Nov 2006 16:14:11 +0100

Hatuka*nezumi - IKEDA Soji wrote:
I got it about strftime().

strftime() accepts/returns a string encoded by charset that is
determined by current system locale. So (also, preferred formats
of date/time depend on locale) ---

POSIX::strftime(FORMAT, TIME)

may be replaced with:

Encode::decode(gettext("_charset_"),
POSIX::strftime(Encode::encode(gettext("_charset_"),
gettext(FORMAT)),
TIME))

(I assume gettext("_charset_") designates the equivalent one of
$locale2charset{...}. Is it right?)
We've applied the sympa-MAIN-20061103-strftime.patch patch you proposed, except for the part that concerns xgettext.pl.
Could you please present what is the goal of the patch for xgettext.pl ?

Thanks.



Archive powered by MHonArc 2.6.19+.

Top of Page