trim and utf-8 oddness
Posted: Thu Jan 26, 2006 10:28 am
I'm using newLISP UTF-8 on MacOS. Why does the \000 start appearing?
Code: Select all
(set 't "a hypothetical one-dimensional subatomic particle")
"a hypothetical one-dimensional subatomic particle"
> (trim t)
"a hypothetical one-dimensional subatomic particle"
> t
"a hypothetical one-dimensional subatomic particle"
> (trim t "e")
"a hypothetical one-dimensional subatomic particl"
> t
"a hypothetical one-dimensional subatomic particl\000"
> (trim t "a" "e")
" hypothetical one-dimensional subatomic particl"
> t
" hypothetical one-dimensional subatomic particl\000\000"
>