lua-users home
lua-l archive

Re: [ANN] ICU4Lua v0.01 Public Alpha

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


Duncan Cross wrote:
> The binaries are
> Win32-centric but I don't believe the actual source code is - if
> anyone would like to look into making sure it works on other platforms
> I would be grateful for that.
This works great for me on linux with attached src/Makefile
Regards,
miko
all:	clean icu.so icu.utf8.so icu.ustring.so test
%.so:	%.c
	gcc -shared -llua -o $@ $< `icu-config --ldflags`
clean:
	rm -f *.so
test:
	mkdir -p icu
	cp icu.utf8.so icu/utf8.so
	cp icu.ustring.so icu/ustring.so
	lua -l icu.utf8 -e 'print(icu.utf8.upper("Hello world"))'
	lua -l icu.ustring -e 'print(icu.ustring.upper(icu.ustring.decode("Hello world")))'

AltStyle によって変換されたページ (->オリジナル) /