fujita-y / ypsilon

R7RS/R6RS Scheme Implementation
BSD 2-Clause "Simplified" License
55 stars 5 forks source link

error reading non-7bit source #116

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create the file:

(import (rnrs))
"cioé"

the last char in the string is the latin-1 accented "e".

2. Run it.

What is the expected output? What do you see instead?
It should just run. It prints:

error in load: encountered invalid utf-8 sequence

irritants:
  #<textual-input-port "/home/marco/var/tmp/proof.sps" utf-8 closed>

What version of the product are you using? On what operating system?
Ypsilon revision 503. i686-pc-linux-gnu.

Please provide any additional information below.
Is there a way to select a transcoder for the textual input port from which
the source is read? Maybe with a command line switch?

Original issue reported on code.google.com by mrc....@gmail.com on 30 Jul 2009 at 3:26

GoogleCodeExporter commented 9 years ago
This is a wrong report, sorry.  The file I used was written with the Emacs 
coding
"raw-text", which is not valid utf-8 nor valid latin-1. So Ypsilon issues a 
correct
error message.

Original comment by mrc....@gmail.com on 31 Jul 2009 at 6:08