Project

General

Profile

Activity

From 04/05/2009 to 04/11/2009

04/11/2009

04:03 PM Bug #1336: Change in string representation of Floats
=begin
Hi,

At Sat, 11 Apr 2009 15:17:24 +0900,
Roger Pack wrote in [ruby-core:23179]:
> Is this satisfactory, or would anyone still prefer Float#to_s
> => rounded, Float#inspect => non rounded (i.e. 0.9.inspect =>
> "0.8999999999...
nobu (Nobuyoshi Nakada)
03:17 PM Bug #1336: Change in string representation of Floats
=begin
I like the recent change. Now it acts like this:

>> 0.9
=> 0.9
>> 2.1 - 3.0
=> -0.8999999999999999
>> (2.1-3.0) == -0.9
=> false

Is this satisfactory, or would anyone still prefer Float#to_s => rounded, Floa...
rogerdpack (Roger Pack)
03:42 PM Feature #1031 (Assigned): -U オプションの説明が --help にない
=begin

=end
nobu (Nobuyoshi Nakada)
01:11 PM Feature #1031: -U オプションの説明が --help にない
=begin
権限のある方、ステータスを Assigned に変更してください。
=end
sakuro (Sakuro OZAWA)
11:41 AM Feature #1374 (Closed): location of already initialized constant
=begin
なかだです。

初期化済み定数の警告で、定義された場所を表示するのはどうでしょうか。

$ ./ruby -e X=1 -e X=2
-e:2: warning: already initialized constant X at -e:1


Index: class.c
===================================================================
-...
nobu (Nobuyoshi Nakada)
12:04 AM Revision 63347979 (git): * ChangeLog: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

04/10/2009

11:45 PM Revision 6e785b17 (git): * configure.in (Makefile): phoeny ruby target needs empty command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:18 AM Bug #1372: Kernel.catch not accepting &block
=begin
Suraj Kurapati wrote::
> $ cat catch.rb
> b = lambda { throw :foo }
> catch :foo, &b
...
> catch.rb:2:in `catch': wrong number of arguments (1 for 0) (ArgumentError)
> from catch.rb:2:in `<main>'

Proc object generated ...
ko1 (Koichi Sasada)
06:51 AM Bug #1372 (Closed): Kernel.catch not accepting &block
=begin
Please observe:


$ cat catch.rb
b = lambda { throw :foo }
catch :foo, &b


$ multiruby catch.rb

VERSION = 1.8.7-p72
CMD = ~/.multiruby/install/1.8.7-p72/bin/ruby catch.rb


RESULT = 0

VERS...
sunaku (Suraj Kurapati)
02:32 AM Revision 4ab8fb1a (git): * common.mk (up): updates timestamp file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

04/09/2009

07:54 PM Revision 5c532941 (git): * configure.in (Makefile): info-program needs common.mk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:46 PM Revision 3a60f6ef (git): * configure.in (RUBY_INSTALL_NAME): use --program-transform-name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:01 PM Revision 8191f129 (git): * instruby.rb, mkconfig.rb: deal with --program-transform-name
better. now supports s, y commands and single addressing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:59 PM Revision 7bce5959 (git): * 2009-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:59 PM Revision 07aede58 (git): * configure.in: don't override the rule for ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:44 AM Bug #1370 (Closed): in `glob': invalid byte sequence in UTF-8
=begin
Code page is CP949 and file name is "\xC7\xD1.exe"

Here is sample code:
# encoding: UTF-8
a = Dir.glob('*') # success
p a
a = Dir.glob('*.exe') # fail
p a

The output is:
ruby 1.9.1p0 (2009-01-30 revision 2...
phasis68 (Heesob Park)
11:28 AM Bug #1366 (Assigned): Pathname#relative_path_from should handle the scenario where the argument uses a different case for the Windows drive letter
=begin
Already fixed in r23093, and would be backported by the next patch release.
=end
nobu (Nobuyoshi Nakada)
02:40 AM Bug #1366 (Closed): Pathname#relative_path_from should handle the scenario where the argument uses a different case for the Windows drive letter
=begin
On Windows, the case of the drive letter can be either upper case or lower case (eg, "C:" or "c:") on the same machine at the same time in different Command Prompt Windows (see below for details). Dir.pwd will return either lower...
shri (Shri Borde)
09:04 AM Bug #1368 (Closed): ruby19 trunk (svn revision 23160) build fails compiling dl ext on win32
=begin
Hi,

In attempting to build from the current svn trunk (revision 23160)
on win32, I'm getting a failure linking the dl extension.

(Building on WinXP, Visual Studio 2003, cl.exe version 13.10.6030)

I configured as ...
spatulasnout (B Kelly)
08:01 AM Bug #1367 (Closed): flatten(0) is not consistent with flatten(), flatten(1), etc.
=begin
> a = [1, 2]
> a2 = a.flatten
> a2 << :a
> a2
=> [1, 2, :a]
> a
=> [1, 2]

> b = [3, 4]
> b2 = b.flatten 1
> b2 << :b
> b2
=> [3, 4, :b]
> b
=> [3, 4]

HOWEVER:

> c = [5, 6]
> c2 = c.flatten...
pjlewis (Paul Lewis)
03:56 AM Feature #578: add method to disassemble Proc objects
=begin
Any progress on this? any way I can help?
Thanks!
-=r
=end
rogerdpack (Roger Pack)
02:11 AM Revision d58b0f8e (git): * 2009-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:11 AM Revision 27a12555 (git): * ext/nkf/nkf.c: RDoc typo fixed. [ruby-core:23170]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e matz (Yukihiro Matsumoto)

04/08/2009

10:07 PM Bug #1365 (Closed): String#dump with non-ascii-compatible string provides invalid code
=begin
Applied in changeset r23160.
=end
mame (Yusuke Endoh)
09:58 PM Bug #1365 (Closed): String#dump with non-ascii-compatible string provides invalid code
=begin
遠藤です。

アスキー非互換な文字列を String#dump すると eval できない文字列が
得られました。

$ ./ruby -e 'p "\u3042".encode("UTF-16LE").dump'
"\"B0\".force_encoding(\"UTF-16LE\"\x00"

Index: string.c
======================================================...
mame (Yusuke Endoh)
09:59 PM Bug #1342: signal handling on HP-UX
=begin
OK, so the problem with Segmentation faults was related to the previous changes I had made to use getcontext/setcontext instead of setjmp/lonjmp; it was causing Fibers to fail for one thing, and who knows what else. Once I rever...
graza (Graham Agnew)
08:59 PM Bug #1342: signal handling on HP-UX
=begin
Some progress on this:

In the HP-UX documentation it says that on Itanium, PTHREAD_STACK_MIN is 256KB. But when I tracked the actual value doen in (limits.h), I found that it was only 4KB. Increasing this has solved the pr...
graza (Graham Agnew)
08:23 PM Bug #1364 (Closed): /usr/local/lib/ruby/1.9.1/rexml/text.rb:375: [BUG] Segmentation fault
=begin
ruby 1.9.1p0 with mysql-ruby-2.8.1 running on SuSE Linux Enterprise Server 10 SP1 running Ruby program oddbod.rb http://community.elgg.org/pg/plugins/codebrane/read/60964/migration-09-gt-15-plugin-for-all-data

Just before cr...
kpmurray (Kevin Murray)
02:38 PM Bug #1363 (Rejected): Wrong value for Hash of NaN
=begin
Ruby cannot handle NaN as a unique key of Hash.

Here is an example:

irb(main):001:0> h = {}
=> {}
irb(main):002:0> h[0/0.0]=1
=> 1
irb(main):003:0> h[0/0.0]=2
=> 2
irb(main):004:0> h[0/0.0]=3
=> 3
irb(ma...
phasis68 (Heesob Park)
01:05 PM Revision a5596dc6 (git): * string.c (rb_str_dump): buffer length plus one byte for null
terminator. [ruby-dev:38294]
* test/ruby/test_m17n.rb (test_str_dump): add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
11:08 AM Revision 6387c5dc (git): * string.c (rb_str_rstrip_bang): should not sign-expand non-ascii.
[ruby-core:23158]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:48 AM Revision c9ad044d (git): * test/ruby/test_string.rb (test_chop, test_chop!): tests for [ruby-core:23155].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:00 AM Bug #1361: Configure fails to recognize the absence of bison
=begin
Hi,

At Wed, 8 Apr 2009 06:16:43 +0900,
Wesha the Leopard wrote in [ruby-core:23148]:
> Bison is NOT installed by default on FreeBSD, resulting in the following error when "make"ing:

Why do you need to make parse.c, which ...
nobu (Nobuyoshi Nakada)
06:16 AM Bug #1361 (Rejected): Configure fails to recognize the absence of bison
=begin
There is a line "YACC = bison" in Makefile.in; but configure fails to recognize the absence of bison

Bison is NOT installed by default on FreeBSD, resulting in the following error when "make"ing:

-----------------------...
wesha (Wesha the Leopard)
09:59 AM Revision e1a304ff (git): merge revision(s) 19486:
* win32/win32.c (subtruct): check tv_sec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@23156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shyouhei (Shyouhei Urabe)
08:31 AM Revision 8b95a0df (git): * string.c (rb_str_chop_bang): reset coderange. [ruby-core:23155]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:00 AM Revision a6fa5855 (git): * lib/mkmf.rb (what_type?): fixed typo, and refined for member of
aggregation types.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:57 AM Revision 6b806a8a (git): * lib/mkmf.rb (Logging.postpone): copy postponed output always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:57 AM Revision 64be577b (git): * lib/mkmf.rb (Logging.postpone): copy postponed output always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:46 AM Revision 0b05fc5a (git): * lib/mkmf.rb (what_type?): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:42 AM Bug #1357: Fixing variables into specific CPU registers deemed overrated & may disturb compilers' optimizers
=begin
Hi,

At Mon, 6 Apr 2009 19:38:09 +0900,
Ollivier Robert wrote in [ruby-core:23137]:
> clang uses __clang__ as main #define. It also aims to
> support most GNUC constructs & defines.

Also __GNUC__ and __i386__?

I'd tho...
nobu (Nobuyoshi Nakada)
12:46 AM Revision 34f01201 (git): * configure.in (LIBRUBY_SO): removed redundant additional version
numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

04/07/2009

04:35 AM Revision d9921b1d (git): * common.mk (info): shows configured names.
* configure.in (Makefile): works even if RUBY_INSTALL_NAME
contains macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:14 AM Revision 99b38e10 (git): * configure.in (LIBRUBY_DLDFLAGS): compatibility version is
ruby_version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:10 AM Revision 4b4dc16f (git): * configure.in (RUBY_REPLACE_TYPE): defines type modifier prefix
for printf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

04/06/2009

09:11 PM Bug #1353: io does not convert str when ext == intern
=begin
成瀬です。

sheepman wrote:
>> 内部エンコーディングの設定は、書き込み時のエンコーディング変換には影響しません。
>> またdefault_externalも、書き込み時のエンコーディング変換には影響しません。
>
> 影響しているようです。

うーむむ、確かに。
ちょっと[ruby-dev:38276]も含めて再整理します。

--
NARUSE, Yui <[email protected]>
=end
naruse (Yui NARUSE)
09:09 PM Feature #1358: net/http has no TRACK method - here's a patch
=begin
what you get for posting patches in ruby-forum.com and only adding them here 3 days later... :)

http://www.ruby-forum.com/topic/183307
=end
sardaukar (Bruno Antunes)
09:00 PM Feature #1358: net/http has no TRACK method - here's a patch
=begin
Very similar to http://redmine.ruby-lang.org/issues/show/1352 :)
=end
daz (Dave B)
08:50 PM Feature #1358 (Rejected): net/http has no TRACK method - here's a patch
=begin
net/http has no TRACK method - I found it useful and trivial to add, so here is my patch for it. It is not part of the RFC, but it does have a use.
=end
sardaukar (Bruno Antunes)
08:17 PM Bug #1355 (Closed): -O3 deemed uncessary
=begin
Applied in changeset r23142.
=end
nobu (Nobuyoshi Nakada)
07:12 PM Bug #1355: -O3 deemed uncessary
=begin
There are not that many differences between -O2 and -O3 (mainly -finline-functions IIRC) so I'm a bit surprised there. Anyway, I'd remove any "default" level to let people choose except for -O. The main problem is that if I do ...
roberto (Ollivier Robert)
06:41 PM Bug #1355: -O3 deemed uncessary
=begin
The real point? gcc -O2 was a crap. We've recieved many "bug" reports that ruby cannot compile.

If you want that silly -O2 enabled, type ./configure optflags=-O2
=end
shyouhei (Shyouhei Urabe)
05:29 PM Bug #1355 (Closed): -O3 deemed uncessary
=begin
I do not see the real point in forcing all compilation with -O3 and it makes overriding the optimization level overly complicated. Let people choose the level they want.
=end
roberto (Ollivier Robert)
07:45 PM Feature #1045: nicer icon for ruby.exe
=begin
Luis Lavena wrote:
>
> Something like the RubyInstaller icon?
>
> http://blog.mmediasys.com/2008/03/29/progress-of-one-click-installer-rubyinstaller/


Hi Luis,

I like this one you use very much:
http://rubyi...
daz (Dave B)
07:38 PM Bug #1357: Fixing variables into specific CPU registers deemed overrated & may disturb compilers' optimizers
=begin
clang uses __clang__ as main #define. It also aims to support most GNUC constructs & defines.
=end
roberto (Ollivier Robert)
07:23 PM Bug #1357: Fixing variables into specific CPU registers deemed overrated & may disturb compilers' optimizers
=begin
Hi,

At Mon, 6 Apr 2009 17:43:20 +0900,
Ollivier Robert wrote in [ruby-core:23132]:
> As a side-effect, it enables successful compilation with
> recent versions of clang/llvm.

Does it have a macro to tell if it's clang/ll...
nobu (Nobuyoshi Nakada)
05:43 PM Bug #1357 (Closed): Fixing variables into specific CPU registers deemed overrated & may disturb compilers' optimizers
=begin
I do not think that fixing specific variable into CPU registers is really reflected in performance gains (benchmarks welcome!). It will also generally disturb compilers' handling of optimization (especially on register-starved C...
roberto (Ollivier Robert)
05:47 PM Revision 04d1fc84 (git): * configure.in (RUBY_DEFINT): use AC_INCLUDES_DEFAULT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:36 PM Bug #1356 (Third Party's Issue): Be consistent in function declarations
=begin
When compiling with clang, prototypes for two OpenSSL functions are found to be mismatched with respect to "const". Fix that.
=end
roberto (Ollivier Robert)
05:27 PM Revision c30f5e82 (git): * configure.in (RUBY_DEFINT): should pass includes to
AC_CHECK_SIZEOF and RUBY_CHECK_SIZEOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:25 PM Revision 254446f5 (git): * configure.in (CFLAGS, CXXFLAGS): need ARCH_FLAG for universal
binary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:08 PM Revision 8ebd0d43 (git): * numeric.c (flo_to_s): reduce fragments if no precision lost.
c.f. [ruby-core:23075]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:16 PM Revision e8fbc9ca (git): * configure.in (CFLAGS, CXXFLAGS): override with $cflags and
$cxxflags if not given. [ruby-core:23130]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:16 PM Revision aa75b002 (git): * configure.in (CFLAGS, CXXFLAGS): override with $cflags and
$cxxflags if not given. [ruby-core:23130]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:51 PM Bug #1336: Change in string representation of Floats
=begin
I agree with Brian.

I think it is a spec for Ruby 1.8 and 1.9 to fail to round-trip,
even if it may be inconvenient a little. I cannot find a reason
why `round-trip' feature is more important than compatibility.

In addit...
mame (Yusuke Endoh)
03:24 AM Bug #1336: Change in string representation of Floats
=begin

I have to agree with Brian on this.

A quick, informal survey of various other languages shows that, by default,
most
will faithfully convert floating point 2.4 from a string to float and back
again.

'C', 'C++', Lua, H...
brent (Brent Roman)
11:16 AM Revision 359e5930 (git): * configure.in (CFLAGS, CXXFLAGS): use orignal values if given.
[ruby-core:23130]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:16 AM Revision d456f0aa (git): * configure.in (CFLAGS, CXXFLAGS): use orignal values if given.
[ruby-core:23130]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:26 AM Revision 228d3e46 (git): * file.c (utime_failed): refined the error message for EINVAL on
DOSISH platforms, where it may fail depending on filesystems.
see [ruby-dev:38277].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:38 AM Revision a3a88c6b (git): * file.c (sys_fail2, rb_file_s_readlink, BUFCHECK, rmext),
(rb_file_s_basename): get rid of overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:11 AM Revision 1b71f8a5 (git): * numeric.c (int_chr): checsk overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:06 AM Bug #1350: gem method with version dependency fails
=begin
Good to know,

I did a search before submitting this patch but seems Redmine search is not indexing properly japanese text.
=end
luislavena (Luis Lavena)
04:56 AM Bug #1350: gem method with version dependency fails
=begin
This is probably the same issue as Bug #1163 - which has a patch that works for me.
=end
shaydon (Simon Haydon)
01:49 AM Revision 090dc8fd (git): * test/stringio/test_stringio.rb (test_path): StringIO#path is no
longer defined. [ruby-dev:38254]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:47 AM Revision aaec30f9 (git): * ext/stringio/stringio.c (strio_path): removed. [ruby-dev:38254]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

04/05/2009

11:20 PM Bug #1353: io does not convert str when ext == intern
=begin
こんばんは sheepman です。

On Sun, 5 Apr 2009 22:08:19 +0900
"NARUSE, Yui" <[email protected]> wrote:

> 内部エンコーディングの設定は、書き込み時のエンコーディング変換には影響しません。
> またdefault_externalも、書き込み時のエンコーディング変換には影響しません。

影響しているようです。

$ cat t.rb
# enco...
sheepman (Takashi Tamura)
10:09 PM Bug #1353: io does not convert str when ext == intern
=begin
成瀬です。

とりあえず先にこちらを。

sheepman wrote:
> こんばんは sheepman です。
>
> IO の外部エンコーディングと内部エンコーディングが等しい場合に、
> 変換が必要な場合でも、変換が起きません。
>
> $ cat t.rb
> # encoding:euc-jp
> io = File.open('t.txt', 'w+', { :internal_encoding => "SJIS...
naruse (Yui NARUSE)
09:11 PM Bug #1353 (Closed): io does not convert str when ext == intern
=begin
こんばんは sheepman です。

IO の外部エンコーディングと内部エンコーディングが等しい場合に、
変換が必要な場合でも、変換が起きません。

$ cat t.rb
# encoding:euc-jp
io = File.open('t.txt', 'w+', { :internal_encoding => "SJIS" } )
io.write("ほげ")

$ ruby-1.9 -v -Esjis t....
sheepman (Takashi Tamura)
04:57 PM Bug #1336: Change in string representation of Floats
=begin
brian ford wrote:
> So, this decision takes a marginal case for which a perfectly good
> mechanism already exists and promotes it to the common case. But
> that's not all. The consequence for the common case is that 2.4 is
> ...
headius (Charles Nutter)
02:51 AM Bug #1336: Change in string representation of Floats
=begin
On Fri, Apr 3, 2009 at 11:49 PM, Roger Pack <[email protected]> wrote:
> Issue #1336 has been updated by Roger Pack.
>
>
>>> * numeric.c (flo_to_s): keeps enough precision for round trip.
>
> One possibility would be to...
brixen (Brian Shirai)
09:02 AM Revision 03dbd024 (git): * include/ruby/intern.h (rb_fd_resize): does nothing on Win32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:59 AM Revision a3e7e369 (git): * include/ruby/intern.h (Init_stack): moved.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
 

Also available in: Atom