chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] string-translate and utf-8


From: Kon Lovett
Subject: Re: [Chicken-users] string-translate and utf-8
Date: Thu, 27 Nov 2008 11:55:30 -0800

Hi,

The problem below is fixed with 2.0.5 of the utf8 egg.

The source of the problem was the rewriting of some string operations by the compiler which were rebound in the same compilation-unit.

This can be a feature or a gotcha so programmers should be aware. (The most reliable source of which routines are "usual-integrations" is the Chicken source file "c-platform.scm".)

On Nov 8, 2008, at 2:55 AM, Sunnan * wrote:

Well; here's a transcript:

CHICKEN
(c)2008 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 3.2.7 - linux-unix-gnu-x86-64   [ 64bit manyargs dload ptables
applyhook hostpcre ]
compiled 2008-08-21 on debian (Linux)

#;1> (string-translate " i " "ö " "o_")
Error: (string-translate) invalid translation destination
0
"o_"

        Call history:

        <syntax>          (string-translate " i " "ö " "o_")
        <eval>            (string-translate " i " "ö " "o_")        <--
#;1> (require-extension utf8)
; loading /var/lib/chicken/3/utf8.scm ...
; loading /var/lib/chicken/3/utf8-support.so ...
; loading /var/lib/chicken/3/utf8-lolevel.so ...
; loading /var/lib/chicken/3/byte-string.so ...
#;2> (string-translate " i " "ö " "o_")
Error: (vector-ref) out of range
#(#\o #\_)
2

        Call history:

        <syntax>          (string-translate " i " "ö " "o_")
        <eval>            (string-translate " i " "ö " "o_")        <--


_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users

Best Wishes,
Kon






reply via email to

[Prev in Thread] Current Thread [Next in Thread]