| 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 14:30:48 -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: | <1iyzxxl.1a86lsfrb63cuM%realbasiclists@monkeybreadsoftware. de> |
| References: | <EFBD2814-7A6E-48B3-B747-ECBF3EF95BFA@oofile.com.au> <1iyzxxl.1a86lsfrb63cuM%realbasiclists@monkeybreadsoftware.de> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
On Apr 30, 2009, at 1:32 PM, Rubber Chicken Software Co. wrote: OK, take a deep breath...Let's say I have a FolderItem in RB, and I have a dylib written in C ++ that calls the POSIX function lstat() (or stat()) to verify the existence of the file.lstat() takes a char* argument for the path. But under what Encoding?Most of the time this works, but not in some cases. In this case I have a trademark symbol, and ultimately lstat() rejects the char* I throw at it.Here's my process: -I take the AbsolutePath of the folder item Why not take the ShellPath instead? That's what lstat/stat will expect... HTH, 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> |
|---|---|---|
| ||
| Previous by Date: | Re: RB3DSpace, viewport translations, and me sucking at math, Joe Strout |
|---|---|
| Next by Date: | Re: File Suggestions?, Peter K. Stys |
| Previous by Thread: | Re: Encodings, Trademarks, Files, and POSIX, Rubber Chicken Software Co. |
| Next by Thread: | Re: Encodings, Trademarks, Files, and POSIX, Rubber Chicken Software Co. |
| Indexes: | [Date] [Thread] [Top] [All Lists] |