From 23b280869314c59be4e4fb01d68ebacf753475a9 Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 27 Aug 2011 09:18:18 +0000 Subject: * strftime.c (rb_strftime_with_timespec): get enc argument to specify the encoding of the format. On Windows (at least Japanese Windows), Time#strftime("%Z") includes non ASCII in locale encoding (CP932). So convert locale to default internal. [ruby-core:39092] [Bug #5226] * strftime.c (rb_strftime): ditto. * strftime.c (rb_strftime_timespec): ditto. * internal.h (rb_strftime_timespec): follow above. * time.c (rb_strftime_alloc): ditto. * time.c (strftimev): ditto. * time.c (time_strftime): ditto. * time.c (time_to_s): the resulted string of Time#to_s is always ascii only, so this should be US-ASCII. * time.c (time_asctime): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 5d7e6d719f..2cda9d637c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,27 @@ +Sat Aug 27 18:17:58 2011 NARUSE, Yui + + * strftime.c (rb_strftime_with_timespec): get enc argument to specify + the encoding of the format. On Windows (at least Japanese Windows), + Time#strftime("%Z") includes non ASCII in locale encoding (CP932). + So convert locale to default internal. [ruby-core:39092] [Bug #5226] + + * strftime.c (rb_strftime): ditto. + + * strftime.c (rb_strftime_timespec): ditto. + + * internal.h (rb_strftime_timespec): follow above. + + * time.c (rb_strftime_alloc): ditto. + + * time.c (strftimev): ditto. + + * time.c (time_strftime): ditto. + + * time.c (time_to_s): the resulted string of Time#to_s is always + ascii only, so this should be US-ASCII. + + * time.c (time_asctime): ditto. + Sat Aug 27 11:18:12 2011 Hiroshi Nakamura * Revert r33078. It caused a Rails application NoMethodError. -- cgit v1.2.3