[gambit-list] Some UTF-8 support issues.

Ramil Farkhshatov ramil at gmx.co.uk
Mon Sep 7 09:13:09 EDT 2009


Hello.

1. WRITE and PP procedures output unicode (UTF-8 with nonlatin
characters) strings in such form:
	"\uXXXX\uXXXX" ; when run with t8 option
	"\XXX\XXX" ; when run without t8 option
Also procedures returning strings output in REPL acts in same manner.
Is there a way to change that behaviour?

2. Have troubles operating files with unicode names when gsi runned
with t8 option.

With t8 option:
> (file-exists? "~/develop/каталог")
#f

Without t8 option:
> (file-exists? "~/develop/каталог")
#f

OPEN-DIRECTORY cannot open directories with unicode names:
> (define fd (open-directory "~/develop/каталог/"))
*** ERROR IN (console)@20.12 -- (Argument 1) Can't convert to C char-string
(open-directory "~/develop/\u043a\u0430\u0442\u0430\u043b\u043e\u0433/")

Additional info:
% locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE=C
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=

% echo $GAMBCOPT
dar,t8E,f8,-8

-- 
Ramil Farkhshatov




More information about the Gambit-list mailing list