W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

[FileAPI] BlobBuilder.append("native")

From: Glenn Maynard <glenn@zewt.org>
Date: Thu, 22 Sep 2011 19:47:15 -0400
Message-ID: <CABirCh_Mif_xJdR7O=1usvkEoCMfx54d5kDHpJNpm0LHaZ5kTw@mail.gmail.com>
To: public-webapps@w3.org
> "native" Newlines must be transformed to the default line-ending
representation of the underlying host filesystem. For example, if the
underlying filesystem is FAT32, newlines would be transformed into \r\n
pairs as the text was appended to the state of the BlobBuilder.

This is a bit odd: most programs write newlines according to the convention
of the host system, not based on peeking at the underlying filesystem.  You
won't even know the filesystem if you're writing to a network drive.  I'd
suggest "must be transformed according to the conventions of the local
system", and let implementations decide what that is.  It should probably be
explicit that the only valid options are \r\n and \n, or reading files back
in which were transformed in this way will be difficult.

Also, in the Issue above that, it seems to mean "native" where it says

Glenn Maynard
Received on Thursday, 22 September 2011 23:47:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:24 UTC