sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Ruby widechar filenames not supported

    scheduled pinned locked moved Developers' Forum
    2 Posts 2 Posters 275 Views 2 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • AdamBA Offline
      AdamB
      last edited by

      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

      Developer of LightUp Click for website

      one-reply-to-this-post last-reply-time reply quote 0
      • thomthomT Offline
        thomthom
        last edited by

        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.

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        one-reply-to-this-post last-reply-time reply quote 0
        • 1 / 1
        • first-post
          last-post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement