Ruby widechar filenames not supported
-
Just got bitten by this in LightUp, so be warned..
On a Mac, filepaths using widechar to accommodate Chinese/Japanese etc work fine. Unfortunately, Ruby 1.8.x on Windows (ie SketchUp Ruby) uses ANSI file handling, so you get filenames like "?????" from Dir.entries that include Chinese etc filenames/folders. Ditto FileTest.xxx functionality.
I've had to write a bunch of widechar file handling extensions this morning to fix LightUp file handling on multi-lingual filesystems. (Be in LightUp v1.9c)
Adam
-
I ran into that as well. My write-up from back then: http://forums.sketchucation.com/viewtopic.php?f=180&t=20657 (Probably outdated and not 100% correct.)
I had thought of doing a CExtension available, with some basic file, read,write,exist? methods - but I'm not that familiar with C yet.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement