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: Tim Jones <tjmac@tolisgroup.com>
Date: Thu, 30 Apr 2009 15:44:17 -0700
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
Delivered-to: listarchive@realsoftware.com
In-reply-to: <26A8A471-45CB-4ECE-AB43-CCA2891A652D@tolisgroup.com>
References: <EFBD2814-7A6E-48B3-B747-ECBF3EF95BFA@oofile.com.au> <1iyzxxl.1a86lsfrb63cuM%realbasiclists@monkeybreadsoftware.de> <26A8A471-45CB-4ECE-AB43-CCA2891A652D@tolisgroup.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
On Apr 30, 2009, at 3:00 PM, Rubber Chicken Software Co. wrote:

At 04:30 PM 4/30/2009, you wrote:

> -I take the AbsolutePath of the folder item

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.

Tim


_______________________________________________
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>