Opened 9 years ago

Closed 6 years ago

#422 closed defect (fixed)

[utf8 egg] problem with utf8-case-map and Windows

Reported by: m Owned by: Alex Shinn
Priority: major Milestone:
Component: extensions Version: 4.5.0
Keywords: egg, windows, utf8 Cc:
Estimated difficulty:

Description

I had no problems installing utf8 egg on Windows using chicken-install tool, however I had problems with case-map-1.dat file. It is located in lib/chicken/5/ directory with other modules, however, when I try to load utf8-case-map I get this warning:

#;1> (use utf8-case-map)
; loading /usr/local/lib/chicken/5/utf8-case-map.import.so ...
; loading /usr/local/lib/chicken/5/scheme.import.so ...
; loading /usr/local/lib/chicken/5/chicken.import.so ...
; loading /usr/local/lib/chicken/5/extras.import.so ...
; loading /usr/local/lib/chicken/5/ports.import.so ...
; loading /usr/local/lib/chicken/5/posix.import.so ...
; loading /usr/local/lib/chicken/5/srfi-4.import.so ...
; loading /usr/local/lib/chicken/5/utf8-lolevel.import.so ...
; loading /usr/local/lib/chicken/5/lolevel.import.so ...
; loading /usr/local/lib/chicken/5/utf8-srfi-14.import.so ...
; loading /usr/local/lib/chicken/5/srfi-69.import.so ...
; loading /usr/local/lib/chicken/5/iset.import.so ...
; loading /usr/local/lib/chicken/5/unicode-char-sets.import.so ...
; loading /usr/local/lib/chicken/5/utf8-case-map.so ...
; loading /usr/local/lib/chicken/5/utf8-lolevel.so ...
; loading /usr/local/lib/chicken/5/utf8-srfi-14.so ...
; loading /usr/local/lib/chicken/5/iset.so ...
; loading /usr/local/lib/chicken/5/unicode-char-sets.so ...

Warning: couldn't load case-map-1.dat

After that utf8-srfi-13 doesn't really work well:

#;4> (use utf8-srfi-13)
; loading /usr/local/lib/chicken/5/utf8-srfi-13.import.so ...
; loading /usr/local/lib/chicken/5/data-structures.import.so ...
; loading /usr/local/lib/chicken/5/utf8-srfi-13.so ...
#;5> (string-upcase "привет")

Error: (u32vector-ref) out of range
0
0
0

	Call history:

	<syntax>		(string-upcase "привет")
	<eval>		(string-upcase "привет")	<--
#;5> (string-upcase "hello")
"HELLO"

My Chicken Scheme version:

CHICKEN
(c)2008-2010 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 4.5.0
windows-mingw32-x86 [ manyargs dload ptables ]
compiled 21.08.2010  on Semerochka (MinGW)

btw, utf8 egg works flawlessly on linux

Change History (2)

comment:1 Changed 9 years ago by felix winkelmann

Milestone: 4.7.0

comment:2 Changed 6 years ago by Alex Shinn

Resolution: fixed
Status: newclosed

Thanks for the patch, fixed.

Note: See TracTickets for help on using tickets.