Xojo Conferences
MBSOct2019CologneDE

Unix Path from Shell to Mac Path (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: App slowing down
Next thread: Another cross-plattform question


Localized strings in tabpanel   -   Jan Erik Moström <
  Unix Path from Shell to Mac Path   -   ralf
   Re: Unix Path from Shell to Mac Path   -   Joseph J. Strout
    Re: Unix Path from Shell to Mac Path   -   ralf

Unix Path from Shell to Mac Path
Date: 31.05.02 09:39 (Fri, 31 May 2002 10:39:52 +0200)
From: ralf
How can I convert a Unix Path from the shell to a Mac Path?

My Unix Path looks like this:

/Volumes/Bigblue 2/ b?"b?"b?"aktuell/bild 3

And the Mac path should be:

/Volumes/Bigblue 2/ €€€aktuell/bild 3

(Mac OSX 10.1.3-German)

Ralf Sander

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Unix Path from Shell to Mac Path
Date: 31.05.02 15:06 (Fri, 31 May 2002 07:06:42 -0700)
From: Joseph J. Strout
At 10:39 AM +0200 5/31/02, ralf wrote:

>How can I convert a Unix Path from the shell to a Mac Path?
>
>My Unix Path looks like this:
>
>/Volumes/Bigblue 2/ b?"b?"b?"aktuell/bild 3
>
>And the Mac path should be:
>
>/Volumes/Bigblue 2/ ***aktuell/bild 3

Hmm, that's not a Mac path, that's still a unix path -- looks to me
like you've simply converted the UTF-8 representation into MacRoman
or some such. In which case, this is easily done using the
TextEncodingConverter. Check out the Text Utilities module/demo in
the last DR release. Or, depending on what you're doing with it, you
may be able to leave it in UTF-8 (and simply let RB know that that's
what it is; see that same demo for more info). If you need more
detail, just ask (and explain a little better what you want to do
with this).

Cheers,
- Joe

Re: Unix Path from Shell to Mac Path
Date: 31.05.02 19:06 (Fri, 31 May 2002 20:06:52 +0200)
From: ralf

>> How can I convert a Unix Path from the shell to a Mac Path?
>>
>> My Unix Path looks like this:
>>
>> /Volumes/Bigblue 2/ b?"b?"b?"aktuell/bild 3
>>
>> And the Mac path should be:
>>
>> /Volumes/Bigblue 2/ ***aktuell/bild 3
>
> Hmm, that's not a Mac path, that's still a unix path -- looks to me
> like you've simply converted the UTF-8 representation into MacRoman
> or some such.
:) It was converted by the email app, not by me. the 3 asteriks are the big
points (ASCII 165). And - sorry, of course it has ":", not "/". The
Unix-Path is displayed as returned from the shell.
> In which case, this is easily done using the
> TextEncodingConverter. Check out the Text Utilities module/demo in
> the last DR release. Or, depending on what you're doing with it, you
> may be able to leave it in UTF-8 (and simply let RB know that that's
> what it is; see that same demo for more info).
Is this only functional in 4.4a11?
Tested with 4.5a11, the displayname-example returns "u¨"( u + asc 162)
instead of "ü" (asc 159) for a filename
encoding: (256,0,2) Len/b 142

RB 4 gives other result: The returned string was displayed as in the Finder,
encoding:Shift_JIS(2561,0,0)Len/b 120

so I'am more confused then ever with this text encodings.(tested with 10.1.3
German)
> If you need more
> detail, just ask (and explain a little better what you want to do
> with this).
More details would be great. I want to use the "locate"-function with the
shell. It does not accept special characters like the big point-even not in
quotes and it returns the unix path as discribed above.

Cheers,
Ralf

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>