sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Ruby widechar filenames not supported

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 282 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 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

      1 Reply Last reply 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

        1 Reply Last reply 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