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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Webdialog to ruby encoding issue on OSX

    Scheduled Pinned Locked Moved Developers' Forum
    22 Posts 5 Posters 926 Views 5 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.
    • S Offline
      slbaumgartner
      last edited by

      @driven said:

      @ Steve
      do you think the two are unrelated?
      john

      It's possible they have the same cause, but I am not sure how to prove that.

      The man page for the locale command says:

       LANG         Used as a substitute for any unset LC_* variable.  If LANG is unset, it will
                    act as if set to "C".  If any of LANG or LC_* are set to invalid values, locale
                    acts as if they are all unset.
      

      So the behavior you get is consistent with LANG not being set by SU when it launches a subshell. Also, if you set ENV[LANG] to a specific locale such as "en_US.UTF-8" in the Ruby Console before doing the %x, the other variables all follow.

      So far as I can tell, SU doesn't launch a separate process for a WebDialog (at least I don't see one reported in Activity Monitor). I don't know what environment a WebDialog gets...can it be read from javascript?

      Steve

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by

        @tt_su said:

        So this only happen on OSX, not on Windows?

        hi TT

        did you get a chance to run this on your mac?

        and did it confirm what I state, on your setup?

        john

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 Reply Last reply Reply Quote 0
        • 1
        • 2
        • 2 / 2
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement