[Top][All Lists]

[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: Fri, 7 Nov 2008 10:31:18 -0800

On Nov 2, 2008, at 4:40 AM, Sunnan wrote:

I'm updating old code that used to work:

(require-extension syntax-case utf8 srfi-1 utf8-srfi-13 miscmacros)

;(import utf8)
;(import utf8-srfi-13) ;(commented out since they're not needed anymore?)
(use utf8-srfi-13)  ;(I've tried with and without this line)

(string-translate " i " "ö " "o_") ;; this should eval to "_i_"

but i get Error: (vector-ref) out of range, I guess because it reads the
multi-byte characters (i.e. #\ö) as multiple entries in the vector.

My chicken is from debian, see:
Version 3.2.7 - linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables applyhook hostpcre ]
compiled 2008-08-21 on debian (Linux)

Any ideas on how to fix this?

It isn't related to the "un-modularized" form of the "utf8" egg. The core 'string-translate' procedure is replaced by "utf8".

But there is a problem with the replacement. I will fix it later today.


Chicken-users mailing list

Best Wishes,

reply via email to

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