Re: [Audacity-nyquist] Unicode Problems
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Roger D. <rb...@cs...> - 2010-10-28 16:15:26
|
On 10/28/10 11:14 AM, edgar wrote: > Roger asked: > > > My earlier question was: what happens when this string is passed to > > open() or some setdir()? > > open() throws "file not found" > setdir() doesn't change to the directory On the other hand, in XLISP, I created an OS X file with "test" in it, I used Finder to change the file name and the Character Viewer to insert some non-ascii characters. Then, I ran Nyquist from the command line and did this: > (listdir ".") ("." ".." ".DS_Store" "fa\314\214oxa\314\207c") > (setf ii (open "fa\314\214\oxa\314\207c")) #<File-Stream: #8a65c4> > (read ii) TEST > (close ii) NIL So in other words, I can open and read from a file with a non-ascii name. I can also create files with non-ascii names in the same way (just open with :direction :output). Now I'm not sure what is the real problem. Maybe it's OS-dependent? Can you try something similar to the above and send a simple case that fails that I could look at? |