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