• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Ruby widechar filenames not supported

Scheduled Pinned Locked Moved Developers' Forum
2 Posts 2 Posters 258 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.
  • A Offline
    AdamB
    last edited by 16 Aug 2010, 12:28

    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
    • T Offline
      thomthom
      last edited by 16 Aug 2010, 12:32

      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
      1 / 1
      • First post
        1/2
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement