[#4834] Fwd: Re: Whats so different about a Hash? — Andrew Walrond <andrew@...>
>>>>> "A" == Andrew Walrond <andrew@walrond.org> writes:
On Thursday 05 May 2005 13:48, ts wrote:
>>>>> "A" == Andrew Walrond <andrew@walrond.org> writes:
On Thursday 05 May 2005 13:57, ts wrote:
[#4844] Getting rid of Object#equal?()? — =?ISO-8859-15?Q?Florian_Gro=DF?= <florgro@...>
Moin.
[#4848] No way to change socket timeout on opened URI — noreply@...
Bugs item #1878, was opened at 2005-05-05 17:55
[#4855] Method hooks in singleton classes — Pit Capitain <pit@...>
Hello Ruby-maintainers,
[#4858] Build fails on OSX Tiger 10.4 — noreply@...
Bugs item #1883, was opened at 2005-05-06 14:55
Hi,
Hi,
Hi,
On 5/19/05, Shugo Maeda <shugo@ruby-lang.org> wrote:
Hi,
Hi,
[#4869] Infinite loop on YAML.dump (Re: ruby-list:40801) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Hello.
[#4874] - Need to reduce Ruby Sources to the Minimal — Ilias Lazaridis <ilias@...>
Hello all,
Ilias Lazaridis schrieb:
Pit Capitain wrote:
Ryan Davis wrote:
ES wrote:
On May 12, 2005, at 3:13 PM, Ilias Lazaridis wrote:
Mathieu Bouchard wrote:
On Thursday 12 May 2005 22:09, Ilias Lazaridis wrote:
Francois GORET wrote:
Hi,
nobu.nokada@softhome.net wrote:
Hi,
nobu.nokada@softhome.net wrote:
[#4881] Encoding Pragma — Bertram Scharpf <lists@...>
Hi,
[#4886] ruby 1.8.3 preview1 — Yukihiro Matsumoto <matz@...>
Hi,
Yukihiro Matsumoto <matz@ruby-lang.org> [2005-05-12 17:49]:
>What about [ruby-core:4296]?
[#4911] Pointless argc check in Array#select — noreply@...
Patches item #1900, was opened at 2005-05-12 09:33
noreply@rubyforge.org wrote:
>>>>> "D" == Daniel Berger <djberge@qwest.com> writes:
ts wrote:
>>>>> "D" == Daniel Berger <djberge@qwest.com> writes:
On 5/12/05, ts <decoux@moulon.inra.fr> wrote:
Austin Ziegler wrote:
[#4919] - Hierarchical/Modular Directory Structure — Ilias Lazaridis <ilias@...>
The source-code structure should be simplified, lowering barriers for
Hi,
Nakada, Nobuyoshi wrote:
Ilias Lazaridis wrote:
On 5/14/05, Ilias Lazaridis <ilias@lazaridis.com> wrote:
Austin Ziegler wrote:
Hi,
nobu.nokada@softhome.net wrote:
[#4932] ruby-1.8.3 preview1 - failure: cygwin. — Hugh Sasse <hgs@...>
I've just tried to build the preview and got:
[#4992] Pathname#unlink fails on a symlink which points to a directory. — noreply@...
Bugs item #1917, was opened at 2005-05-14 21:33
In article <200505142133.j4ELXEaM011256@rubyforge.org>,
Hello.
In article <20050515153530.0D9F30E0.ocean@m2.ccsnet.ne.jp>,
[#5006] Suggestion for avoiding incivilities — Gavin Sinclair <gsinclair@...>
Hi all,
[#5010] - Function Argument Conventions — Ilias Lazaridis <ilias@...>
As a general rule, the first argument to a function should be the
[#5020] Problems with the "outer scope" operator — Lothar Scholz <mailinglists@...>
Hello,
[#5039] CGI::escapeHTML escapes the ampersand in an existing escape command — noreply@...
Bugs item #1930, was opened at 2005-05-19 11:45
Hi,
Thu, 19 May 2005 13:09:45 +0900, nobuyoshi nakada
Hi,
[#5040] Suggestion to add alias for underscore style method names to camel case named class methods in CGI — noreply@...
Bugs item #1931, was opened at 2005-05-19 11:46
On Thu, 19 May 2005 noreply@rubyforge.org wrote:
On Thu, 19 May 2005 21:22:46 +0900, David A. Black <dblack@wobblini.net>
[#5068] Re: [ ruby-Patches-1939 ] Pathname, totally revamped — Daniel Berger <djberg96@...>
--- nobu.nokada@softhome.net wrote:
Hi,
On 5/22/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net>
Hi,
[#5070] Re: [ ruby-Patches-1939 ] Pathname, totally revamped — Daniel Berger <djberg96@...>
--- daz <dooby@d10.karoo.co.uk> wrote:
[#5075] Re: [ ruby-Patches-1939 ] Pathname, totally revamped — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
Quoting Daniel.Berger@qwest.com, on Mon, May 23, 2005 at 11:06:58PM +0900:
[#5107] Re: will callable objects be more general in Ruby 1.9? — Eric Mahurin <eric_mahurin@...>
[BUG] Infinite loop on YAML.dump (Re: ruby-list:40801)
Hello.
Kouhei Yanagita reported infinite loop bug on YAML.dump.
Please try attached file.
This bug occurs because 7th anchor tag never be generated. (if block never be executed)
Index: emitter.c
===================================================================
RCS file: /src/ruby/ext/syck/emitter.c,v
retrieving revision 1.11
diff -u -w -b -p -r1.11 emitter.c
--- emitter.c 6 May 2004 06:29:56 -0000 1.11
+++ emitter.c 8 May 2005 06:19:25 -0000
@@ -383,6 +383,8 @@ syck_emitter_start_obj( SyckEmitter *e,
*/
idx = e->anchors->num_entries + 1;
+ printf("------> %d %d %d\n", idx, n->pos, e->bufpos);
+
/*
* Create the anchor tag
*/
if ( n->pos >= e->bufpos )
{
------> 1 3 0
------> 2 680 0
------> 3 1357 0
------> 4 2034 0
------> 5 2511 0
------> 6 3188 0
------> 7 3865 4094
(...)
------> 7 3865 8148
(...)
e->bufpos keeps incresing in syck_emitter_flush (by e->bufpos += check_room)
/////////////////////////////////////////////
I'm wondering if this code can be executed correctly when coresponding part of buffer is flushed.
/*
* Write the anchor into the buffer
*/
S_MEMMOVE( start + alen, start, char, e->marker - start );
S_MEMCPY( start + 1, anchor_name, char, strlen( anchor_name ) );
start[0] = '&';
start[alen - 1] = ' ';
e->marker += alen;
Nobody can predict which object needs anchor, so should "fixed size buffer & flush" be abondoned
and whole YAML document be held in memory?
Thank you.
Attachments (1)
module Uploader
class Item
def initialize(fn, filesize, number, last_modified, comment)
@filename = fn
@filesize = filesize
@number = number
@last_modified = last_modified
@comment = comment
end
attr_reader :filename, :last_modified, :comment, :number, :parent, :filesize
attr_writer :filename, :last_modified, :comment, :parent
end
class ItemGroup
def initialize(number, title)
@items = []
@number = number
@title = title
end
attr_reader :items, :number, :title
end
end
s = DATA.read(nil)
require 'yaml'
a = YAML.load(s)
YAML.dump(a)
__END__
---
- &id001 !ruby/object:Uploader::ItemGroup
items:
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_001-001.png
filesize: 0
last_modified: 2005-05-05 23:48:36.925874 +09:00
number: 1
parent: *id001
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_001-002.png
filesize: 0
last_modified: 2005-05-05 23:49:06.215396 +09:00
number: 2
parent: *id001
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_001-003.png
filesize: 0
last_modified: 2005-05-05 23:49:14.766506 +09:00
number: 3
parent: *id001
number: 1
title: ''
- &id002 !ruby/object:Uploader::ItemGroup
items:
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_002-001.png
filesize: 0
last_modified: 2005-05-05 23:49:33.673146 +09:00
number: 1
parent: *id002
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_002-002.png
filesize: 0
last_modified: 2005-05-05 23:50:34.406009 +09:00
number: 2
parent: *id002
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_002-003.png
filesize: 0
last_modified: 2005-05-05 23:50:47.014970 +09:00
number: 3
parent: *id002
number: 2
title: ''
- &id003 !ruby/object:Uploader::ItemGroup
items:
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_003-001.png
filesize: 0
last_modified: 2005-05-05 23:51:02.901020 +09:00
number: 1
parent: *id003
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_003-002.png
filesize: 0
last_modified: 2005-05-05 23:51:16.231563 +09:00
number: 2
parent: *id003
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_003-003.png
filesize: 0
last_modified: 2005-05-05 23:51:26.205355 +09:00
number: 3
parent: *id003
number: 3
title: ''
- &id004 !ruby/object:Uploader::ItemGroup
items:
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_004-001.png
filesize: 0
last_modified: 2005-05-05 23:51:46.070679 +09:00
number: 1
parent: *id004
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_004-002.png
filesize: 0
last_modified: 2005-05-05 23:51:56.024703 +09:00
number: 2
parent: *id004
number: 4
title: ''
- &id005 !ruby/object:Uploader::ItemGroup
items:
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_005-001.png
filesize: 0
last_modified: 2005-05-05 23:52:14.245472 +09:00
number: 1
parent: *id005
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_005-002.png
filesize: 0
last_modified: 2005-05-05 23:52:32.349775 +09:00
number: 2
parent: *id005
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_005-003.png
filesize: 0
last_modified: 2005-05-05 23:52:48.999153 +09:00
number: 3
parent: *id005
number: 5
title: ''
- &id006 !ruby/object:Uploader::ItemGroup
items:
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_006-001.png
filesize: 0
last_modified: 2005-05-05 23:53:09.944092 +09:00
number: 1
parent: *id006
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_006-002.png
filesize: 0
last_modified: 2005-05-05 23:53:21.048095 +09:00
number: 2
parent: *id006
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_006-003.png
filesize: 0
last_modified: 2005-05-05 23:53:31.622946 +09:00
number: 3
parent: *id006
number: 6
title: ''
- &id007 !ruby/object:Uploader::ItemGroup
items:
- !ruby/object:Uploader::Item
comment: ''
filename: hogehoge_007-001.png
filesize: 0
last_modified: 2005-05-05 23:53:09.944092 +09:00
number: 1
parent: *id007
number: 7
title: ''