realbasic-nug
[Top] [All Lists]

Re: Encodings, Trademarks, Files, and POSIX

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Encodings, Trademarks, Files, and POSIX
From: "Rubber Chicken Software Co." <support@chickensys.com>
Date: Fri, 01 May 2009 01:16:34 -0500
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; domainkeys=neutral header.From=support@chickensys.com
Delivered-to: listarchive@realsoftware.com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=chickensys.com; h=Received:X-Mailer:Date:To:From:Subject:In-Reply-To:References:Mime-Version:Content-Type:X-Identified-User; b=n/dEUPUy4wyl7MMdDucxpk7PwikJo36zudWfioqhkq165/lmep0D4RV+4VqH5H22PBlpPo8IyHAWanpAgkWglk8I3fD7TC+ZuQL+WFaBwusPSBLKjsgiZTW0r27GsOQn;
Domainkey-status: unknown
In-reply-to: <BBFF4C51-1AC6-400E-A54A-D0024BC89A6C@tolisgroup.com>
References: <EFBD2814-7A6E-48B3-B747-ECBF3EF95BFA@oofile.com.au> <1iyzxxl.1a86lsfrb63cuM%realbasiclists@monkeybreadsoftware.de> <26A8A471-45CB-4ECE-AB43-CCA2891A652D@tolisgroup.com> <BBFF4C51-1AC6-400E-A54A-D0024BC89A6C@tolisgroup.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
At 05:44 PM 4/30/2009, you wrote:

>> Why not take the ShellPath instead?  That's what lstat/stat will
>> expect...
>
> See other post - that's not the point of the question.

But, the ShellPath will have the characters properly escaped for
passing to lstat/stat so it IS the point of the question.  lstat and
stat simply expect a char * and don't know anything about encoding.
If you build your char * from the shellpath instead of trying to
manipulate it yourself, you'll get the proper results.

Give it a try before you dismiss it.

(Note: I solved this, see other post)

I did, I just omitted that from the discussion because I already know that isn't the problem. All ShellPath does is escape the 3 bytes that represent the trademark symbol. And it gets passed to lstat() and it says "doesn't exist". Been there, done that.

What I'd really like for my dylib is the ability to change the FolderItem to a FSRef, and instead of using paths in my dylib I could use the normal Apple File Manager stuff. (BTW, the Apple API stuff fails too on that trademark symbol.)

Just like I've seen in www.declaresub.com/iDeclare/Files/4.html - I'll take a stab at that.

* * * * * * * * * * * * * * * * * * * * * * * * * * *
| Garth Hjelte                                      |
| Customer Service Representative, President        |
| Chicken Systems, Inc, Rubber Chicken Software Co. |
| 714 5th Street SE                                 |
| Willmar, MN 56201 USA                             |
|                                                   |
| 800-8-PRO-EPS    Toll Free Order Line (US Only)   |
| 320-235-9798     Tech Support, Sampler Questions  |
|                  International Line               |
| 360-838-7689     Fax                              |
| Product Sales:   sales@chickensys.com             |
| Product Support: support@chickensys.com           |
| Sampler Q+A:     qa@chickensys.com                |
| Web Page:        www.chickensys.com               |
* * * * * * * * * * * * * * * * * * * * * * * * * * *


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>