Re: Unicode file paths
[email protected] Fri, 13 Apr 2018 08:19:24 +0800
| Newsgroups | gmane.comp.audio.supercollider.devel |
|---|---|
| Message-ID | <[email protected]> |
---- On Thu, 12 Apr 2018 23:32:34 +0800 <[email protected]> wrote ---- > I'd be happy to fix it but I need more information than this. If you can give reproducers for separate primitives that don't work I'd appreciate it. Probably just missed a conversion somewhere. The error reported by the students is "Qt: Could not open soundfile." That strongly suggests SoundFileView.read (I'm calling readWithTask, but currently that delegates to 'read'). Prior to calling SoundFileView.read, I'm validating the path based on extension (wav, aiff, flac) and checking that the file exists, and getting basic stats on the file from SoundFile (i.e. it must have a valid sound file header). If it's getting as far as trying to read the file into the view, then all of those checks are working. I tested dragging a path with Chinese characters into my full GUI and, in Linux, there's no problem. I'll try again on my Windows machine in the office, a couple of hours later. A minimal reproducer, then, should be the first SoundFileView example in the help, except substitute a path containing Unicode characters. hjh _______________________________________________ sc-dev mailing list info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/ search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/