From: "no6v (Nobuhiro IMAI)" Date: 2013-01-20T17:01:05+09:00 Subject: [ruby-core:51528] [ruby-trunk - Bug #6820] Time#to_s on NEWS Issue #6820 has been updated by no6v (Nobuhiro IMAI). > I think this is a bug on Time#to_s, not NEWS. > > From #5226: > tenderlovemaking (Aaron Patterson) wrote: > > I think the encoding of Time#to_s should default to US-ASCII, but respect Encoding.default_internal. It seems that Naruse-san didn't implement so on this point at r33094 explicitly. * time.c (time_to_s): the resulted string of Time#to_s is always ascii only, so this should be US-ASCII. ---------------------------------------- Bug #6820: Time#to_s on NEWS https://bugs.ruby-lang.org/issues/6820#change-35495 Author: no6v (Nobuhiro IMAI) Status: Assigned Priority: Normal Assignee: tenderlovemaking (Aaron Patterson) Category: Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-08-01 trunk 36587) [x86_64-linux] =begin The Time section on NEWS file says an encoding of Time#to_s respects Encoding.default_internal, but r33094 says it is always US-ASCII. I guess NEWS file is incorrect. See also #5226. $ ruby -E:utf-8 -ve 'p Encoding.default_internal, Time.now.to_s.encoding' ruby 2.0.0dev (2012-08-01 trunk 36587) [x86_64-linux] # # =end -- http://bugs.ruby-lang.org/