Re: Encodings. Paul Schlie (13 Feb 2004 02:18 UTC)
Re: Encodings. Bradd W. Szonye (13 Feb 2004 03:35 UTC)
Re: Encodings. Paul Schlie (13 Feb 2004 05:59 UTC)
Re: Encodings. Bradd W. Szonye (13 Feb 2004 06:36 UTC)
Re: Encodings. Paul Schlie (13 Feb 2004 08:00 UTC)
Re: Encodings. Robby Findler (13 Feb 2004 15:01 UTC)
Re: Encodings. Paul Schlie (13 Feb 2004 17:16 UTC)
Re: Encodings. Paul Schlie (13 Feb 2004 18:19 UTC)
Re: Encodings. Robby Findler (16 Feb 2004 01:03 UTC)
Re: Encodings. Paul Schlie (16 Feb 2004 03:21 UTC)
Re: Encodings. Paul Schlie (16 Feb 2004 04:18 UTC)
Re: Encodings. Robby Findler (16 Feb 2004 04:33 UTC)
Re: Encodings. bear (13 Feb 2004 17:40 UTC)
Re: Encodings. Per Bothner (13 Feb 2004 18:34 UTC)
Re: Encodings. Paul Schlie (13 Feb 2004 19:02 UTC)
Re: Encodings. Bradd W. Szonye (13 Feb 2004 19:05 UTC)
Re: Encodings. Paul Schlie (13 Feb 2004 19:48 UTC)
Re: Encodings. Per Bothner (13 Feb 2004 19:11 UTC)
Re: Encodings. Paul Schlie (13 Feb 2004 19:44 UTC)
Re: Encodings. bear (13 Feb 2004 21:42 UTC)
Re: Encodings. Bradd W. Szonye (13 Feb 2004 21:54 UTC)
Re: Encodings. Paul Schlie (13 Feb 2004 23:45 UTC)
Re: Encodings. Bradd W. Szonye (14 Feb 2004 00:04 UTC)
Re: Encodings. bear (14 Feb 2004 01:06 UTC)
Re: Encodings. Bradd W. Szonye (14 Feb 2004 01:08 UTC)
Re: Encodings. Paul Schlie (14 Feb 2004 02:35 UTC)
Re: Encodings. Bradd W. Szonye (14 Feb 2004 03:00 UTC)
Re: Encodings. Paul Schlie (14 Feb 2004 03:04 UTC)
Re: Encodings. Bradd W. Szonye (14 Feb 2004 03:08 UTC)
Re: Encodings. Paul Schlie (14 Feb 2004 03:29 UTC)
Re: Encodings. Paul Schlie (14 Feb 2004 02:19 UTC)
Re: Encodings. Bradd W. Szonye (14 Feb 2004 03:04 UTC)
Re: Encodings. Paul Schlie (14 Feb 2004 03:10 UTC)
Re: Encodings. Bradd W. Szonye (14 Feb 2004 03:12 UTC)
Re: Encodings. Paul Schlie (13 Feb 2004 22:41 UTC)
Re: Encodings. Bradd W. Szonye (13 Feb 2004 17:55 UTC)
Re: Encodings. Paul Schlie (13 Feb 2004 18:42 UTC)
Re: Encodings. Bradd W. Szonye (13 Feb 2004 18:53 UTC)
Re: Encodings. Ken Dickey (13 Feb 2004 21:53 UTC)
RESET [was Re: Encodings] Ken Dickey (14 Feb 2004 16:19 UTC)
Re: RESET [was Re: Encodings] bear (14 Feb 2004 18:02 UTC)
Re: RESET [was Re: Encodings] Bradd W. Szonye (14 Feb 2004 19:38 UTC)

Re: Encodings. Paul Schlie 16 Feb 2004 04:18 UTC

Just to close the issue out in my mine, looked at the reader code, it seems
to strip \r characters following \n characters, treating the sequence as a
single \n character, allowing it to conveniently read generic DOS'ish files,
but writes /n characters to terminate lines, which older Mac C compilers
substitutes with an LF ironically I recall. (so you've got basically a
universal reader for binary based port text, authored using one of three
typical newline conventions, which would seem to be apparently adequate).

> From: Paul Schlie <xxxxxx@comcast.net>
> Date: Sun, 15 Feb 2004 22:20:53 -0500
> To: <srfi-52@srfi.schemers.org>
> Subject: Re: Encodings.
> Resent-From: srfi-52@srfi.schemers.org
> Resent-Date: Mon, 16 Feb 2004 04:21:04 +0100 (NFT)
>
> Hi Robby,
>
> - as I've personally been using OSX for the past few years, I have to admit
> I forget what peculiarities may have existed under OS9 previously, but as
> Mac's have historically been the underdog, their text editors have had to
> become sensitive to various other platform end-of-line encoding, and adopt
> to it locally. (regardless of UNIX, DOS, or Mac initial encoding).
>
> - do agree that all files should be opened in binary mode, but do suspect
> that it would be nice to adhere to local conventions, and be sensitive to
> foreign ones; although if one had to pick the most the neutral one, would
> guess it to be UNIX, as you've chosen.
>
> - with respect to utf8, although I wouldn't expect any problems with respect
> to the use of Scheme's defined character-set; would guess that most programs
> will continue to interpret non-ASCII encoded character bytes based on their
> native character-set by default, which aren't presently likely Unicode based
> (but only relevant to those who expect something otherwise).
>
> Thanks, -paul-
>
>> From: Robby Findler <xxxxxx@cs.uchicago.edu>
>> Date: Sun, 15 Feb 2004 19:03:57 -0600
>> To: Paul Schlie <xxxxxx@comcast.net>
>> Cc: srfi-52@srfi.schemers.org
>> Subject: Re: Encodings.
>> Resent-From: srfi-52@srfi.schemers.org
>> Resent-Date: Mon, 16 Feb 2004 02:03:59 +0100 (NFT)
>>
>> At Fri, 13 Feb 2004 12:15:54 -0500, Paul Schlie wrote:
>>> (although I suspect that it may be found necessary to
>>> base read-char, read-string, etc. on a flexibly defined "local" encoding
>>> definition, rather than assuming all text/data is encoded any particular
>>> way, on any particular platform.)
>>
>> Our experience with the crlf issues on windows vs mac vs unix suggests
>> the opposite. The desire to be able to distribute a single set of
>> sources that runs on all those platforms means that we currently read
>> all files in binary (by default). Whether this translates to unicode
>> issues isn't entirely clear, but we're starting with a single default
>> encoding, rather than looking for local encodings.
>>
>> Robby
>>
>