unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mike Gran <spk121@yahoo.com>
To: Guile Devel <guile-devel@gnu.org>
Subject: Wide string status
Date: Wed, 10 Jun 2009 08:31:06 -0700	[thread overview]
Message-ID: <1244647866.3936.4416.camel@localhost.localdomain> (raw)

Hi-

It seems that the current push of the string_abstraction2 branch works
fairly well with respect to non-REPL code.  For examples of its basic
capabilities, see the encoding tests in the test suite, such as
test-suite/tests/encoding-utf8.test.

So, ports have two new properties: a character encoding, and a strategy
for dealing with characters unrepresentable in that encoding.
set-port-encoding! and set-port-conversion-strategy! are the big
procedures there.

I merged master into it to bring the branch up to date.

A source code file that contains non-ASCII chars needs to contain a
declaration like "coding: UTF-8" within a scheme comment in the first
couple of lines to be interpreted correctly.  UTF-16, EBCDIC and other
encodings that don't allow raw ASCII to be encoded unmodified are not
supported in the reader for source code.  (They sort of work for port
i/o but need more testing.)

Next, I suppose, is to get the compiler and REPL up and working.  That
requires chars be at least 21-bits wide in, for example,
language/assembly/compile-bytecode.scm.  I'm a bit intimidated by that
code, but, we'll see.

Beyond that, character sets need to be more than 256 chars, and readline
needs to be checked.  That would do for a release, I think.  Longer
term, R6RS ports need transcoders and then can be used to replace legacy
Guile ports as they become more feature complete.

I'm likely going to miss this point release, since I'm off on vacation
in a couple of days and shall not be thinking about code for a week or
two.

Late,
Mike






                 reply	other threads:[~2009-06-10 15:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1244647866.3936.4416.camel@localhost.localdomain \
    --to=spk121@yahoo.com \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).