Re: Possible bug with null document in libyaml

Ingy dot Net <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
On Sat, Nov 21, 2009 at 10:30 AM, Bill Spitzak <[email protected]> wrote:

> Okay I agree that a blank should be a "null" and not a zero-length scalar.
>
> It does appear that my solution for scalars (which is to force the quoting
> on for a zero-length one) matches the proposed solution.
>
> However it still means that a blank file is different than one that has a
> "---" in it. A blank file is nothing, but a single "---" is a single null.
> So I think the problem still exists: libyaml on output, if told to write
> nothing other than a null, will have to write it somehow other than a blank
> file.
>

I agree with Bill. No matter how the libyaml options are set, libyaml (or
any other implementation for that matter) should not produce an incorrect
YAML representation. So it's a bug in libyaml.

Kirill, I'll try to patch libyaml and pyyaml.

Cheers, Ingy

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.