Search found 7 matches

by qinying
Sat Jul 22, 2017 4:38 pm
Forum: Anything else we might add?
Topic: about (directory)
Replies: 11
Views: 9295

Re: about (directory)

TedWalther wrote:Does that mean the non-UTF8 version of newlisp is working for you?
Can only handle Chinese directory and file names,
can not parsing strings correctly
by qinying
Sat Jul 22, 2017 1:34 am
Forum: Anything else we might add?
Topic: It's a bug? first,last,rest in utf-8 string
Replies: 1
Views: 3806

It's a bug? first,last,rest in utf-8 string

> (set 'str "中文字符串")
"中文字符串"
> (first str)
"中"
> (last str) ;Should be "串"
"?
> (rest str)
"文字符串"
---------
> (set 'name "覃文运")
"覃文运"
> (first name) ;Should be "覃"
"覃文"
> (rest name) ;Should be "文运"
"运"
> (last name)
"运"
by qinying
Sat Jul 22, 2017 1:04 am
Forum: Anything else we might add?
Topic: about (directory)
Replies: 11
Views: 9295

Re: about (directory)

try the non utf-8 version newLISP v.10.7.2 64-bit on Windows IPv4/6 libffi, options: newlisp -h > (set-locale) ("C" ".") > (directory) ("." ".." "newlisp.exe" "\208\194\189\168\206\196\177\190\206\196\181\181.txt") > (println (last (directory))) 新建文本文档.txt "\208\194\189\168\206\196\177\190\206\196\1...
by qinying
Sat Jul 22, 2017 12:22 am
Forum: Anything else we might add?
Topic: about (directory)
Replies: 11
Views: 9295

Re: about (directory)

I'm new to programming and I can't solve this problem by myself, so I can only look forward to the new version
by qinying
Wed Jul 19, 2017 12:11 am
Forum: Anything else we might add?
Topic: about (directory)
Replies: 11
Views: 9295

Re: about (directory)

Code: Select all

> (set-locale)
("Chinese (Simplified)_People's Republic of China.936" ".")
by qinying
Tue Jul 18, 2017 11:51 am
Forum: Anything else we might add?
Topic: about (directory)
Replies: 11
Views: 9295

Re: about (directory)

so glad to receive the reply,thanks! > (define str->bytes (lambda (s) (unpack (dup "b" (length s)) s))) (lambda (s) (unpack (dup "b" (length s)) s)) > (directory) ("." ".." "guiserver" "index.html" "newlisp.exe" "鏂板缓鏂囨湰鏂囨。.txt") > (str->bytes "新建文本文档") (208 194 189 168 206 196 177 190 206 196 181 18...
by qinying
Sun Jul 16, 2017 1:11 pm
Forum: Anything else we might add?
Topic: about (directory)
Replies: 11
Views: 9295

about (directory)

The Chinese file name cannot be displayed correctly.on my win7-64-bit computer.
it's a bug?