-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
4030 lines (2522 loc) · 136 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Sat Nov 12 21:14:51 2011 KOSAKI Motohiro <[email protected]>
* test/webrick/test_cgi.rb (class TestWEBrickCGI): respect
RbConfig::CONFIG["LIBPATHENV"]. [Bug #5135] [ruby-core:38653]
* test/webrick/test_filehandler.rb (class WEBrick): ditto.
Sat Nov 12 20:57:29 2011 KOSAKI Motohiro <[email protected]>
* test/ruby/test_io.rb (test_fcntl_dupfd): skip if Fcntl::DUPFD
is not defined. Pointed out by CHIKANAGA Tomoyuki. Thanks.
Sat Nov 12 17:26:10 2011 Nobuyoshi Nakada <[email protected]>
* io.c (do_ioctl, ioctl_narg_len, setup_narg, rb_ioctl): use
ioctl_req_t.
Sat Nov 12 17:01:49 2011 Nobuyoshi Nakada <[email protected]>
* ext/dbm/extconf.rb (headers.db_check): reduce duplicated code.
Sat Nov 12 15:59:42 2011 Tanaka Akira <[email protected]>
* ext/dbm/extconf.rb: dbm_clearerr should be available in all ndbm
implementation. If it is not available, it is caused by
header/library mismatch such that Berkeley DB header & gdbm library.
* ext/dbm/dbm.c (fdbm_store): use dbm_clearerr() unconditionally.
gdbm 1.9 provides it as a real function instead of a empty macro.
Sat Nov 12 13:35:33 2011 KOSAKI Motohiro <[email protected]>
* bootstraptest/runner.rb: don't suppress SIGINT.
[Feature #5612] [ruby-dev:44856]
Sat Nov 12 11:20:36 2011 KOSAKI Motohiro <[email protected]>
* io.c (fcntl_narg_len): introduce narg calculation for fcntl instead
of hard coded 256.
* io.c (setup_narg): ditto.
Sat Nov 12 11:19:35 2011 KOSAKI Motohiro <[email protected]>
* test/ruby/test_io.rb (test_fcntl_dupfd): add another fcntl test.
Sat Nov 12 11:18:17 2011 KOSAKI Motohiro <[email protected]>
* test/ruby/test_io.rb (test_fcntl_lock_freebsd): add a testcase
of fcntl lock for freebsd.
Sat Nov 12 11:16:32 2011 KOSAKI Motohiro <[email protected]>
* io.c (ioctl_narg_len): Linux doesn't have IOCPARM_LEN macro, but
has _IOC_SIZE. support it.
Sat Nov 12 11:13:18 2011 KOSAKI Motohiro <[email protected]>
* io.c (rb_ioctl): don't expose our sanity check value to ruby script.
It may change string value meaning if the value is string.
(e.g. MacOS X has F_GETPATH ioctl)
* io.c (rb_fcntl): ditto.
Sat Nov 12 11:06:02 2011 KOSAKI Motohiro <[email protected]>
* io.c (ioctl_req_t): Type of req argument of ioctl() depend on platform.
Moreover almost all linux ioctl can't be represented by 32bit integer
(i.e. MSB is 1). We need wrap ioctl argument type.
[Bug #5429] [ruby-dev:44589]
* io.c (struct ioctl_arg): ditto.
* io.c (rb_ioctl): ditto.
* test/ruby/test_io.rb (test_ioctl_linux): add a testcase for ioctl
Sat Nov 12 11:00:42 2011 KOSAKI Motohiro <[email protected]>
* io.c (struct io_cntl_arg): remove io_p member.
* io.c (nogvl_fcntl, do_fcntl, rb_fcntl): separated from ioctl functions.
* io.c (nogvl_io_cntl): remove fcntl depended logic.
* io.c (io_cntl): ditto.
* io.c (rb_io_ctl): ditto.
* io.c (rb_io_ioctl): ditto.
Sat Nov 12 10:59:49 2011 KOSAKI Motohiro <[email protected]>
* io.c (setup_narg): fix off by one bug.
Sat Nov 12 10:56:43 2011 KOSAKI Motohiro <[email protected]>
* io.c (+setup_narg): factor out length calculation logic.
* io.c (rb_io_ctl): ditto.
Sat Nov 12 10:52:17 2011 KOSAKI Motohiro <[email protected]>
* io.c (+ioctl_narg_len) new helper function.
* io.c (rb_io_ctl): don't use ioctl specific length check
if caller is fcntl.
Fri Nov 11 23:00:46 2011 Tanaka Akira <[email protected]>
* ext/dbm/extconf.rb: db_prefix is not required now.
Fri Nov 11 21:13:30 2011 Tanaka Akira <[email protected]>
* ext/gdbm/gdbm.c (fgdbm_initialize): use GDBM_CLOEXEC if available.
Fri Nov 11 21:00:05 2011 Tanaka Akira <[email protected]>
* ext/dbm/extconf.rb: fix dbm_pagfno and dbm_dirfno detection with
Berkeley DB. Macro definitions needs arguments to detect correctly.
SIZEOF_DSIZE needs -DDB_DBM_HSEARCH because db.h defines datum type
only if DB_DBM_HSEARCH is defined.
Fri Nov 11 18:41:57 2011 Nobuyoshi Nakada <[email protected]>
* process.c (proc_seteuid): separate an internal wrapper function
from the method implementation.
Fri Nov 11 17:21:15 2011 Nobuyoshi Nakada <[email protected]>
* lib/mkmf.rb (have_library, find_library, have_func): allow
arguments of function to be checked.
Fri Nov 11 17:09:45 2011 Nobuyoshi Nakada <[email protected]>
* vm_dump.c (HAVE_BACKTRACE): fallback to 0.
* vm_dump.c (rb_vm_bugreport): show "Other runtime information"
header only when available.
* vm_dump.c (rb_vm_bugreport): get rid of modifying the content of
VM directly.
* vm_dump.c (rb_vm_bugreport): check if vm is non-null.
Pointed out by Ikegami Daisuke <[email protected]>.
Thank you.
Fri Nov 11 12:36:37 2011 KOSAKI Motohiro <[email protected]>
* io.c (pipe_open): Remove fflush(stdin). it's no effect.
Pointed out by Ikegami Daisuke <[email protected]>.
Thank you.
Fri Nov 11 07:33:30 2011 Eric Hodel <[email protected]>
* lib/net/http.rb (Net::HTTP::SSL_ATTRIBUTES): Use symbol keys instead
of string keys to avoid duplicating parameters in
OpenSSL::SSL:SSLContext#set_params.
Thu Nov 10 15:02:37 2011 Nobuyoshi Nakada <[email protected]>
* lib/mkmf.rb (have_library, have_func, have_var, have_header):
add compiler option parameter.
Thu Nov 10 07:45:16 2011 Eric Hodel <[email protected]>
* ext/openssl/lib/openssl/ssl.rb (class OpenSSL::SSL::SSLContext):
Document #set_params.
Wed Nov 9 11:36:53 2011 KOSAKI Motohiro <[email protected]>
* thread_pthread.c (gvl_yield): don't prevent concurrent sched_yield().
[Bug #5130] [ruby-core:38647]
Wed Nov 9 23:20:22 2011 Nobuyoshi Nakada <[email protected]>
* io.c (rb_update_max_fd): fstat(2) can fail with other than
EBADF. [ruby-dev:44837] [Bug #5593]. Cf.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/fstat.html
* io.c (rb_sysopen): max fd is updated in rb_sysopen_internal()
already.
Wed Nov 9 22:13:38 2011 NAKAMURA Usaku <[email protected]>
* test/ruby/test_file.rb (TestFile#test_utime_with_minus_time_segv):
fixed previous commit.
Wed Nov 9 19:53:45 2011 NAKAMURA Usaku <[email protected]>
* test/ruby/test_file.rb (TestFile#test_utime_with_minus_time_segv):
add test for r33685.
Wed Nov 9 19:00:44 2011 Koichi Sasada <[email protected]>
* test/ruby/test_fiber.rb: add tests for r33684 (Fiber#resume).
Wed Nov 9 16:40:49 2011 NAKAMURA Usaku <[email protected]>
* win32/win32.c (unixtime_to_filetime): should check the return value
of localtime(). reported by snowjail at gmail.com.
[ruby-dev:44838] [Bug #5596]
Thu Nov 9 13:17:25 2011 Koichi Sasada <[email protected]>
* cont.c (rb_fiber_m_transfer, rb_fiber_resume): prohibit using
"resume" after "transfer" method are used. You should not mix
"resume" fiber and "transfer" fiber.
[Bug #5526]
* NEWS: add information about this change.
Wed Nov 9 11:40:37 2011 Nobuyoshi Nakada <[email protected]>
* template/Doxyfile.tmpl (INCLUDE_PATH): add srcdir and include.
[ruby-core:40843] [Bug #5597]
Wed Nov 9 11:02:54 2011 NARUSE, Yui <[email protected]>
* thread.c (do_select): fix cast, tv_sec is time_t.
Wed Nov 9 10:32:20 2011 Nobuyoshi Nakada <[email protected]>
* configure.in: should not use test -e for portability.
[ruby-core:40841] [Bug #5594]
Wed Nov 9 04:52:16 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych/tree_builder.rb: dump complex numbers,
rationals, etc with reference ids.
* ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
* ext/psych/lib/psych/visitors/to_ruby.rb: loading complex numbers,
rationals, etc with reference ids.
* test/psych/test_object_references.rb: corresponding tests
Tue Nov 8 23:34:37 2011 Nobuyoshi Nakada <[email protected]>
* ext/dbm/dbm.c (fdbm_fetch, fdbm_key, fdbm_delete, fdbm_store)
(fdbm_has_key, fdbm_has_value): get rid of overflow.
* ext/gdbm/gdbm.c (rb_gdbm_fetch2, rb_gdbm_nextkey)
(rb_gdbm_delete, fgdbm_store, fgdbm_has_key): ditto.
* ext/dbm/dbm.c (fdbm_delete_if): hide intermediate objects.
* ext/gdbm/gdbm.c (fgdbm_delete_if): ditto.
* ext/dbm/extconf.rb: check size of datum.dsize to get rid of
overflow.
Tue Nov 8 23:30:21 2011 NARUSE, Yui <[email protected]>
* addr2line.c (PATH_MAX): define if not defined. [ruby-core:40840]
Tue Nov 8 23:26:49 2011 Nobuyoshi Nakada <[email protected]>
* ext/tk/tcltklib.c (rb_thread_critical): fix type.
* ext/tk/tcltklib.c (eventloop_sleep, lib_eventloop_core): int is
enough for micro seconds. may need to check overflow in the
setter though.
* ext/tk/tcltklib.c (RSTRING_LENINT): check overflow if necessary.
* ext/tk/tcltklib.c (RbTk_ALLOC_N): wrapper for ckalloc() which
takes an int.
* ext/tk/tcltklib.c (ip_ruby_cmd_receiver_get, tcltklib_compile_info):
get rid overflow.
* ext/tk/tcltklib.c (tcltklib_compile_info): constified.
Tue Nov 8 20:50:45 2011 Tanaka Akira <[email protected]>
* test/dbm/test_dbm.rb: split tests for read only database.
* test/gdbm/test_gdbm.rb: ditto.
Tue Nov 8 18:59:07 2011 Tanaka Akira <[email protected]>
* ext/pty/pty.c (MasterDevice): define only when used.
(SlaveDevice): ditto.
(deviceNo): ditto.
Tue Nov 8 17:59:24 2011 Nobuyoshi Nakada <[email protected]>
* include/ruby/ruby.h (rb_long2int): define as a macro always, so
that cpp conditionals can tell if it is provided.
Tue Nov 8 17:30:50 2011 Nobuyoshi Nakada <[email protected]>
* lib/mkmf.rb (cpp_command): remove multiple -arch flags since cpp
cannot work.
Tue Nov 8 14:50:55 2011 NAKAMURA Usaku <[email protected]>
* io.c (io_fwrite): call rb_w32_write_console() only if FMODE_TTY is
set. this is the one of the reason of IO writing slowness of Windows
in 1.9.3 or later.
Tue Nov 8 11:01:04 2011 NARUSE, Yui <[email protected]>
* ext/pty/pty.c (get_device_once): FreeBSD 8 supported O_CLOEXEC flag
for posix_openpt, but FreeBSD 9's posix_openpt doesn't support
O_CLOEXEC and fails if specified.
Tue Nov 8 02:36:45 2011 NAKAMURA Usaku <[email protected]>
* include/ruby/encoding.h (ECONV_NEWLINE_DECORATOR_READ_MASK,
ECONV_NEWLINE_DECORATOR_WRITE_MASK): new macro.
* io.c (rb_io_extract_modeenc, pipe_open, prep_stdio, argf_next_argv):
set TEXTMODE_NEWLINE_DECORATOR_ON_WRITE for textmode on creating IO
if the flag is available.
* io.c (make_writeconv): drop decorators for reading.
* io.c (make_readconv): drop decorators for writing.
* io.c (do_writeconv): existing writeconv is not the condition to raise
ArgumentError. should check textmode or not.
* test/ruby/test_io_m17n.rb
(TestIO_M17N#test_{cr,lf,crlf}_decorator_on_stdout): test above
changes.
Mon Nov 7 22:03:47 2011 Tanaka Akira <[email protected]>
* ext/gdbm/gdbm.c (fgdbm_initialize): set close-on-exec flag.
Mon Nov 7 20:31:52 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych/scalar_scanner.rb: make sure strings that look
like base 60 numbers are serialized as quoted strings.
* test/psych/test_string.rb: test for change.
Mon Nov 7 20:26:37 2011 Aaron Patterson <[email protected]>
* test/psych/test_yamlstore.rb: make test case inherit from MiniTest,
load psych/helper so that psych is loaded.
Mon Nov 7 20:18:29 2011 Aaron Patterson <[email protected]>
* test/psych/test_yamldbm.rb: Test case should inherit from MiniTest,
load psych/helper so that psych and friends are loaded.
Mon Nov 7 20:15:44 2011 Tanaka Akira <[email protected]>
* ext/dbm/extconf.rb: check dbm_pagfno() and dbm_dirfno().
* ext/dbm/dbm.c: use above to set close-on-exec flag.
Mon Nov 7 20:05:16 2011 NAKAMURA Usaku <[email protected]>
* io.c (io_fflush): remove fsync().
* io.c (rb_io_flush, rb_io_rewind): fsync() here.
these changes reduces fsync() calls to improve performance.
first reported at [ruby-list:48515] by ak7 at mail.goo.ne.jp .
[Bug #5585]
Mon Nov 7 19:43:10 2011 Tanaka Akira <[email protected]>
* io.c (rb_close_before_exec): use F_MAXFD if available.
F_MAXFD is available on NetBSD since NetBSD 2.0.
Mon Nov 7 19:25:16 2011 NAKAMURA Usaku <[email protected]>
* test/ruby/test_io_m17n.rb
(TestIO_M17N#test_default_stdout_stderr_mode): new test for
r33627-33629. see [backport #5565]
Mon Nov 07 01:14:22 2011 Ayumu AIZAWA <[email protected]>
* lib/debug.rb: add help for 'pp' and 'r[estart]'. patch
from Sho Hashimoto. [Bug #5093] [ruby-dev:44222]
Sun Nov 6 14:49:58 2011 Tanaka Akira <[email protected]>
* ext/socket/rubysocket.h (rsock_recvmsg): declared.
* ext/socket/ancdata.c (rsock_recvmsg): extracted from
nogvl_recvmsg_func.
(nogvl_recvmsg_func): use rsock_recvmsg.
* ext/socket/unixsocket.c (recvmsg_blocking): use rsock_recvmsg.
Sun Nov 06 03:22:36 2011 Martin Bosslet <[email protected]>
* test/openssl/test_engine.rb: add test for engine cipher. RC4 is used
because AES is not supported by the "openssl" engine currently.
Sun Nov 6 00:11:52 2011 Tanaka Akira <[email protected]>
* lib/test/unit.rb (Test::Unit::Options#non_options): options[:ruby]
should be an array. This fixes
"./ruby test/runner.rb test/testunit/test_parallel.rb"
[ruby-dev:44782]
Sat Nov 5 20:30:30 2011 Martin Duerst <[email protected]>
* insns.def: Some fixes and tweaks to English explanations
Sat Nov 5 19:11:50 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_fcntl_dupfd): don't clear try_dupfd_cloexec if
fcntl(F_DUPFD) failed as fcntl(F_DUPFD_CLOEXEC).
Sat Nov 5 18:05:12 2011 Tanaka Akira <[email protected]>
* ext/socket/socket.c (rsock_socketpair0): refactored.
Sat Nov 5 17:55:52 2011 Tanaka Akira <[email protected]>
* ext/socket/init.c (rsock_socket0): don't clear try_sock_cloexec if
SOCK_CLOEXEC is not a reason for EINVAL.
Sat Nov 5 16:27:52 2011 Kazuki Tsujimoto <[email protected]>
* ext/pathname/lib/pathname.rb, ext/tk/lib/multi-tk.rb,
ext/tk/sample/demos-en/widget, lib/benchmark.rb, lib/irb/cmd/fork.rb,
lib/mkmf.rb, lib/net/ftp.rb, lib/net/smtp.rb, lib/open3.rb,
lib/pstore.rb, lib/rexml/element.rb, lib/rexml/light/node.rb,
lib/rinda/tuplespace.rb, lib/rss/maker/base.rb,
lib/rss/maker/entry.rb, lib/scanf.rb, lib/set.rb, lib/shell.rb,
lib/shell/command-processor.rb, lib/shell/process-controller.rb,
lib/shell/system-command.rb, lib/uri/common.rb: remove unused block
arguments to avoid creating Proc objects.
Sat Nov 5 15:45:04 2011 Tanaka Akira <[email protected]>
* ext/socket/init.c (rsock_socket0): extract single socket() call with
CLOEXEC handling from rsock_socket.
Sat Nov 5 11:18:12 2011 Tanaka Akira <[email protected]>
* ext/socket/socket.c (rsock_socketpair0): don't clear
try_sock_cloexec if SOCK_CLOEXEC is not a reason for EINVAL.
Fri Nov 4 14:08:19 2011 Hiroshi Nakamura <[email protected]>
* ext/openssl/ossl_pkey_rsa.c (rsa_generate): [SECURITY] Set RSA
exponent value correctly. Awful bug. This bug caused exponent of
generated key to be always '1'. By default, and regardless of e
given as a parameter.
!!! Keys generated by this code (trunk after 2011-09-01) must be
re-generated !!! (ruby_1_9_3 is safe)
* test/openssl/test_pkey_rsa.rb: Add tests for default exponent and
specifying exponent by a parameter.
Fri Nov 04 01:31:25 2011 Martin Bosslet <[email protected]>
* test/openssl/test_engine.rb: add first tests for builtin "openssl"
engine.
Fri Nov 04 08:41:26 2011 Martin Bosslet <[email protected]>
* ext/openssl/extconf.rb:
* ext/openssl/ossl_engine.c: add some missing OpenSSL engines.
Thanks, Yui Naruse, for providing the patch!
[Bug #5548] [ruby-core:40670]
Fri Nov 4 04:54:10 2011 NAKAMURA Usaku <[email protected]>
* win32/configure.bat: disable delayed expansion of enironment variable.
[Bug #5517] [ruby-core:40531]
Fri Nov 4 03:45:22 2011 NAKAMURA Usaku <[email protected]>
* io.c (make_writeconv): fixed typo of previous commit.
Fri Nov 4 01:56:30 2011 NAKAMURA Usaku <[email protected]>
* io.c (make_writeconv): unversal_newline converter is for reading.
so, if the io is text mode and has ECONV_UNIVERSAL_NEWLINE_DECORATOR
flag, use crlf_newline converter for writing.
this change fixes the problem about the luck of CR up Kernel.p and
Kernel.puts to stdout/stderr on Windows.
Fri Nov 4 01:04:48 2011 NARUSE, Yui <[email protected]>
* ext/readline/readline.c (Init_readline): like r18313, libedit's
replace_history_entry may use offset instead of which.
so introduce history_replace_offset_func and initialize it.
* ext/readline/readline.c (hist_set): use history_replace_offset_func.
Fri Nov 4 00:53:35 2011 NARUSE, Yui <[email protected]>
* ext/readline/readline.c (Init_readline): fix wrong condition.
Thu Nov 3 23:53:04 2011 NAKAMURA Usaku <[email protected]>
* encoding.c (rb_locale_charmap): ignore calling nl_langinfo_codeset()
on Windows except cygwin. [experimental]
Thu Nov 3 22:45:09 2011 Tanaka Akira <[email protected]>
* ext/socket/socket.c (rsock_socketpair0): extracted from
rsock_socketpair to set close-on-exec flag for each socketpair()
call.
Thu Nov 3 22:12:41 2011 CHIKANAGA Tomoyuki <[email protected]>
* ext/socket/init.c (rsock_socket): set close-on-exec flag when
SOCK_CLOEXEC is not available.
Thu Nov 03 08:36:00 2011 Martin Bosslet <[email protected]>
* test/openssl/test_engine.rb: call Engine::cleanup on exit.
Patch provided by Yui Naruse, thanks!
[Bug #5547] [ruby-core:40669]
Wed Nov 2 21:36:00 2011 Nobuyoshi Nakada <[email protected]>
* complex.c (nucomp_rationalize): fix function. [ruby-core:40667]
[Bug #5546]
Wed Nov 2 08:16:45 2011 Tanaka Akira <[email protected]>
* lib/webrick/utils.rb: fix fcntl call.
* lib/drb/unix.rb: ditto.
Wed Nov 02 00:43:59 2011 Ayumu AIZAWA <[email protected]>
* test/psych/test_yamldbm.rb: avoid platform dependency.
patch by Naohisa Goto. [ruby-dev:44763] [Bug #5535]
* test/syck/test_yamldbm.rb: ditto.
Wed Nov 2 00:14:15 2011 Shugo Maeda <[email protected]>
* test/ruby/test_marshal.rb: renamed methods duplicated with those
of marshaltestlib.rb.
Tue Nov 1 22:08:27 2011 Nobuyoshi Nakada <[email protected]>
* configure.in: reject llvm-gcc.
Tue Nov 1 21:39:00 2011 NARUSE, Yui <[email protected]>
* io.c (rb_cloexec_pipe): remove workaround of r33587.
The bug of NetBSD is fixed on Mon Oct 31 21:31:29 UTC 2011.
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45545
Tue Nov 1 19:49:08 2011 Tanaka Akira <[email protected]>
* io.c (rb_io_reopen): call rb_fd_fix_cloexec instead of
rb_maygvl_fd_fix_cloexec.
Tue Nov 1 19:00:30 2011 Tanaka Akira <[email protected]>
* io.c (rb_io_reopen): call rb_maygvl_fd_fix_cloexec after freopen().
Tue Nov 1 17:17:26 2011 NARUSE, Yui <[email protected]>
* file.c (file_expand_path): reset coderange after expanding path.
Tue Nov 1 14:55:29 2011 NARUSE, Yui <[email protected]>
* io.c (nogvl_io_cntl): rb_cloexec_fcntl_dupfd's 2nd argument is int.
* process.c (move_fds_to_avoid_crash): ditto.
Tue Nov 1 13:14:33 2011 NARUSE, Yui <[email protected]>
* vsnprintf.c (BSD_vfprintf): support 'll' prefix.
* vsnprintf.c (__sfeof): rename to avoid the collision with NetBSD's
one.
* vsnprintf.c (__sferror): ditto.
* vsnprintf.c (__sclearerr): ditto.
* vsnprintf.c (__sfileno): ditto.
Tue Nov 1 12:36:16 2011 Tanaka Akira <[email protected]>
* internal.h (rb_maygvl_fd_fix_cloexec): change the visibility for
ext/socket.
Tue Nov 1 12:00:53 2011 Tanaka Akira <[email protected]>
* io.c (rb_maygvl_fd_fix_cloexec): renamed from fd_set_cloexec.
* internal.h (rb_maygvl_fd_fix_cloexec): declared.
* ext/socket/init.c (cloexec_accept): use rb_maygvl_fd_fix_cloexec.
(rsock_s_accept_nonblock): use rb_update_max_fd.
(rsock_s_accept): use rb_update_max_fd.
Tue Nov 1 08:24:40 2011 Tanaka Akira <[email protected]>
* ext/socket/init.c (cloexec_accept): new function to use accept4 if
available.
(rsock_s_accept_nonblock): use cloexec_accept.
(accept_blocking): ditto.
* ext/socket/extconf.rb: check accept4.
Tue Nov 1 07:31:55 2011 Tanaka Akira <[email protected]>
* ext/socket/ancdata.c (nogvl_recvmsg_func): use MSG_CMSG_CLOEXEC if
available.
* ext/socket/unixsocket.c (recvmsg_blocking): ditto.
Tue Nov 1 05:59:41 2011 Tanaka Akira <[email protected]>
* ext/socket/socket.c (rsock_socketpair): use SOCK_CLOEXEC if
available.
Tue Nov 1 02:56:17 2011 NAKAMURA Usaku <[email protected]>
* ruby.c (load_file_internal): convert the encoding of load path if
needed by platform. calling open() was replaced by rb_cloexec_open()
at r33549, but the function expected UTF-8 pathname on Windows.
(open() expected "locale" pathname.)
reported by taco via IRC.
* ruby.c (load_file): change the type of the 2nd parameter to pass its
encoding to load_file_internal().
* ruby.c (process_options, rb_load_file): follow above change.
NOTE: we should pass encoding information to rb_load_file().
Mon Oct 31 23:49:38 2011 Tanaka Akira <[email protected]>
* ext/socket/socket.c (rsock_socketpair): extracted from
rsock_sock_s_socketpair.
Mon Oct 31 23:31:53 2011 Tanaka Akira <[email protected]>
* ext/socket/init.c (rsock_socket): use SOCK_CLOEXEC if available.
Mon Oct 31 21:47:44 2011 NARUSE, Yui <[email protected]>
* io.c (rb_cloexec_pipe): NetBSD 6.0 will support pipe2(2),
but its return value is -1 or larger than 0.
Mon Oct 31 22:04:54 2011 Tanaka Akira <[email protected]>
* ext/dbm/dbm.c (fdbm_initialize): use O_CLOEXEC if available.
Mon Oct 31 21:47:48 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_fd_fix_cloexec): renamed from
rb_fd_set_cloexec.
* io.c: follow the above renaming.
* ext/pty/pty.c: ditto.
* ext/socket/init.c: ditto.
* ext/socket/socket.c: ditto.
* ext/socket/ancdata.c: ditto.
* ext/socket/unixsocket.c: ditto.
Mon Oct 31 21:02:43 2011 Tanaka Akira <[email protected]>
* lib/resolv.rb (Resolv::DNS): retry IO.select for premature wakeup.
Mon Oct 31 20:14:22 2011 Tanaka Akira <[email protected]>
* io.c (fd_set_cloexec): clear CLOEXEC flag for standard file
descriptors.
(rb_cloexec_dup): use rb_cloexec_fcntl_dupfd.
(rb_cloexec_fcntl_dupfd): use F_DUPFD_CLOEXEC if available.
Mon Oct 31 19:14:11 2011 Tanaka Akira <[email protected]>
* test/resolv/test_dns.rb: don't check maximum sleeped time.
ruby doesn't guarantee the maximum time because it is not a
realtime application.
Mon Oct 31 13:10:06 2011 NAKAMURA Usaku <[email protected]>
* win32/win32.c (setfl): extract from fcntl().
* win32/win32.c (dupfd): new function to support F_DUPFD. based on a
patch written by akr.
* win32/win32.c (fcntl): use above functions.
* include/ruby/win32.h (F_DUPFD): define. [experimental]
* include/ruby/win32.h (F_SETFL): change the value to correspond with
other platforms.
Mon Oct 31 12:37:50 2011 Tanaka Akira <[email protected]>
* ext/pty/pty.c (get_device_once): use O_CLOEXEC for posix_openpt if
available.
Mon Oct 31 12:05:24 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_dup2): check oldfd == newfd at first.
pointed by KOSAKI Motohiro. [ruby-dev:44713]
Mon Oct 31 10:50:26 2011 NAKAMURA Usaku <[email protected]>
* io.c (rb_cloexec_fcntl_dupfd): this function needs F_DUPFD.
* io.c (nogvl_io_cntl): use rb_cloexec_fcntl_dupfd() only if the
platform has F_DUPFD.
Mon Oct 31 00:50:00 2011 Luis Lavena <[email protected]>
* configure.in: check -fno-omit-frame-pointer acceptance and usage
under MinGW. [ruby-core:39957] [Bug #5407]
Mon Oct 31 00:16:11 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_cloexec_fcntl_dupfd): declared.
* io.c (rb_cloexec_fcntl_dupfd): new function.
(nogvl_io_cntl): use rb_cloexec_fcntl_dupfd.
* process.c (move_fds_to_avoid_crash): use rb_cloexec_fcntl_dupfd.
Sun Oct 30 22:46:46 2011 Tanaka Akira <[email protected]>
* configure.in: check pipe2.
* io.c (rb_cloexec_pipe): use pipe2 if available.
Sun Oct 30 22:32:44 2011 Tanaka Akira <[email protected]>
* ruby.c (fill_standard_fds): use fstat() instead of fcntl(F_GETFD)
for MinGW. reported by Luis Lavena. [ruby-core:40526] [Bug #5516]
Sun Oct 30 21:12:47 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_cloexec_pipe): declared.
* io.c (rb_cloexec_pipe): new function.
(rb_pipe): use rb_cloexec_pipe.
* thread_pthread.c (rb_thread_create_timer_thread): use
rb_cloexec_pipe.
Sun Oct 30 20:06:07 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_dup): refine control flow.
(rb_cloexec_dup2): ditto.
Sun Oct 30 18:45:50 2011 Tanaka Akira <[email protected]>
* ruby.c (fill_standard_fds): new function to open closed standard
file descriptors.
(ruby_sysinit): call fill_standard_fds.
Sun Oct 30 10:50:36 2011 Nobuyoshi Nakada <[email protected]>
* tool/rbinstall.rb (install_recursive, bin-comm): split mere
string not path name. [ruby-core:40462] [Bug #5492]
Sun Oct 30 10:47:20 2011 Nobuyoshi Nakada <[email protected]>
* io.c (rb_cloexec_dup, rb_cloexec_dup2): CLOEXEC has been set if
dup3 succeeded.
Sun Oct 30 09:58:48 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_dup): don't allocate standard file descriptors.
Sun Oct 30 08:29:51 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_dup2): don't set CLOEXEC for standard file
descriptors.
Sun Oct 30 07:47:10 2011 Tanaka Akira <[email protected]>
* configure.in: check dup3.
* io.c (rb_cloexec_dup2): use dup3 if available.
Sat Oct 29 22:06:37 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_cloexec_dup2): declared.
* io.c (rb_cloexec_dup2): new function.
(io_reopen): use rb_cloexec_dup2.
Sat Oct 20 21:08:18 2011 Tajima Akil <[email protected]>
* win32/Makefile.sub (CONFIG_H): have stdint.h if VC2010.
[Bug #5243]
Sat Oct 29 20:59:08 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_dup): use F_DUPFD_CLOEXEC if available.
Sat Oct 29 20:00:26 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_cloexec_dup): declared.
* io.c (rb_cloexec_dup): new function.
(ruby_dup): use rb_cloexec_dup.
* ext/pty/pty.c (pty_getpty): use rb_cloexec_dup.
* ext/openssl/ossl_bio.c (ossl_obj2bio): ditto.
Sat Oct 29 16:11:34 2011 Tanaka Akira <[email protected]>
* ext/sdbm/_sdbm.c (sdbm_prep): use O_CLOEXEC if available.
Sat Oct 29 14:26:56 2011 Tanaka Akira <[email protected]>
* io.c (rb_cloexec_open): use O_CLOEXEC if available.
Sat Oct 29 12:57:15 2011 Tanaka Akira <[email protected]>
* process.c (ruby_setsid): use rb_cloexec_open.
(rb_daemon): ditto.
* ruby.c (load_file_internal): ditto.
* file.c (rb_file_s_truncate): ditto.
(file_load_ok): ditto.
* random.c (fill_random_seed): ditto.
* ext/pty/pty.c (chfunc): ditto.
(get_device_once): ditto.
* ext/io/console/console.c (console_dev): ditto.
Sat Oct 29 10:40:19 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_cloexec_open): declared.
* io.c (fd_set_cloexec): extracted from rb_fd_set_cloexec.
(rb_cloexec_open): new function.
(sysopen_func): use rb_cloexec_open.
(rb_sysopen_internal): use rb_update_max_fd instead of
rb_fd_set_cloexec.
Sat Oct 29 09:05:07 2011 Nobuyoshi Nakada <[email protected]>
* thread_pthread.h: no Structured Exception Handling like macros.
[ruby-core:40432] [Bug #5491]
Fri Oct 28 22:05:34 2011 Tanaka Akira <[email protected]>
* ext/sdbm/_sdbm.c: RCS $Id$ removed.
Thu Oct 27 18:58:00 2011 NARUSE, Yui <[email protected]>
* parse.y (parser_nextc): set encoding for the buffer of ripper.
Fri Oct 28 06:06:08 2011 Tanaka Akira <[email protected]>
* ext/sdbm/_sdbm.c (sdbm_prep): set FD_CLOEXEC flags for file
descriptors.
(fd_set_cloexec): new function.
Fri Oct 28 03:01:27 2011 Aaron Patterson <[email protected]>
* vm_insnhelper.c (vm_call_cfunc): adding back useless hack. For some
reason, this fixes CFP errors on OS X 10.7.
Fri Oct 28 00:09:31 2011 Tanaka Akira <[email protected]>
* ext/sdbm/_sdbm.c (sdbm_prep): refactored for less nesting.
Thu Oct 27 18:28:18 2011 Nobuyoshi Nakada <[email protected]>
* configure.in (RUBY_DEFINE_IF): revert r33534 partially to get
rid of AS_ECHO which is not available in autoconf 2.61.
[ruby-dev:44702]
Thu Oct 27 16:10:46 2011 Nobuyoshi Nakada <[email protected]>
* bignum.c (rb_big_divide): raise ZeroDivisionError if divisor is
zero, as well as Fixnum. [ruby-core:40429] [Bug #5490]
Thu Oct 27 14:56:22 2011 Nobuyoshi Nakada <[email protected]>
* configure.in (RUBY_FUNC_ATTRIBUTE): unset temporary variable.
* configure.in (RUBY_STACK_GROW_DIRECTION): substitute CPU name as
shell variable name. based on the patch by The Written Word Inc. at
[ruby-core:40421]. [Bug #5488]
Thu Oct 27 09:57:56 2011 NARUSE, Yui <[email protected]>
* include/ruby/ruby.h (SIZE_MAX): define SIZE_MAX if not defined.
patched by The Written Word Inc. [ruby-core:40422] [Bug #5489]
Thu Oct 27 08:47:38 2011 Martin Bosslet <[email protected]>
* ext/psych/parser.c: remove unused variable.
Thu Oct 27 08:38:41 2011 Martin Bosslet <[email protected]>
* ext/openssl/extconf.rb: add -Wall flag by default when compiler is
GCC.
Wed Oct 26 15:24:25 2011 Nobuyoshi Nakada <[email protected]>
* file.c (rb_file_join): honor input encodings than ASCII-8BIT.
[ruby-core:40338] [Bug #5483]
Tue Oct 25 21:52:31 2011 Tanaka Akira <[email protected]>
* include/ruby/defines.h: use "__sparc" instead of "sparc" and
"__sparc__".
* dln.c: ditto.
[ruby-dev:44694]
Tue Oct 25 06:34:39 2011 Eric Hodel <[email protected]>
* re.c (match_aref): Use <code> around indexing examples to prevent
hyperlinks. [ruby-talk:389396]
Mon Oct 24 23:55:31 2011 Tanaka Akira <[email protected]>
* complex.c: use "__sun" instead of "__sun__" to detect SunOS.
* math.c: ditto.
* hash.c: ditto.
* atomic.h: ditto.
* ext/io/wait/wait.c: ditto.
[ruby-dev:44693]
Mon Oct 24 22:45:37 2011 Tanaka Akira <[email protected]>
* io.c: use "__sun" instead of "sun" to detect SunOS.
* dln.c: ditto.
* cont.c: ditto.
* ext/sdbm/_sdbm.c: ditto.
[ruby-dev:44693]
Mon Oct 24 22:38:08 2011 Tanaka Akira <[email protected]>
* ext/pty/pty.c (get_device_once): delay rb_fd_set_cloexec() until
grantpt() on Solaris. grantpt() doesn't work with CLOEXEC on
Solaris 10.
reported by Naohisa GOTO. [ruby-dev:44688] [Bug #5475]
Mon Oct 24 08:18:14 2011 Tanaka Akira <[email protected]>
* io.c (copy_stream_fallback_body): check nil for EOF of read method.
patch by Eric Wong. [ruby-core:39134] [Bug #5237]
Sun Oct 23 18:21:23 2011 Kazuki Tsujimoto <[email protected]>
* ext/tk/MANUAL_tcltklib.eng: fix typo.
Sun Oct 23 18:03:31 2011 Nobuyoshi Nakada <[email protected]>
* numeric.c (rb_infinity, rb_nan): aggregated member initializers
need braces.
Sun Oct 23 16:43:43 2011 Naohisa Goto <[email protected]>
* ext/io/wait/wait.c: ioctl(2) is declared in unistd.h on Solaris.
Sun Oct 23 16:33:35 2011 Ayumu AIZAWA <[email protected]>
* ext/tk/MANUAL_tcltklib.eng: fix typo. reported by Mimura-san.
[ruby-dev:44683] [Bug #5471]
Sun Oct 23 08:01:29 2011 Tanaka Akira <[email protected]>
* io.c (rb_fd_set_cloexec): set close-on-exec flag only if F_GETFD is
defined. reported by Luis Lavena. [ruby-core:40281] [Bug #5470]
Sat Oct 22 19:48:50 2011 Tanaka Akira <[email protected]>
* test/openssl/test_ssl.rb (test_multibyte_read_write): start server
for each length to avoid race condition.
Sat Oct 22 18:49:24 2011 Tanaka Akira <[email protected]>
* include/ruby/intern.h (rb_fd_set_cloexec): declared.
* io.c (rb_fd_set_cloexec): new function.
(ruby_dup): call rb_fd_set_cloexec to set close-on-exec flag.
(rb_sysopen_internal): ditto.
(rb_pipe): ditto.
(io_reopen): ditto.
(io_cntl): ditto.
* process.c (rb_f_exec): change the default :close_others option to
true.
(rb_f_system): ditto.
(move_fds_to_avoid_crash): call rb_fd_set_cloexec to set
close-on-exec flag.
(ruby_setsid): ditto.
(rb_daemon): ditto.
* thread_pthread.c (rb_thread_create_timer_thread): call
rb_fd_set_cloexec to set close-on-exec flag.