At 08:00 PM 4/30/2009, you wrote:
> 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?
Have you tried a few? UTF8 maybe?
Thanks for the advice, that did it. Looks like lstat() (in my
situation) takes a UTF-16.
http://www1.tip.nl/~t876506/utf8tbl.html
I was using UTF-8, and I should have looked in other instances of my
code, where I was doing it right. I switched all my "path-passing" to
UTF-16 and all is well now.
Still, I should not be relying on paths in my dylib, so my next
project is to get rid of them and use a FolderItem-like object that
encapsulates FSRefs for Mac and paths for Windows, just like the RB
one does. I've learned a lot so far with Charles Yeomans "IDeclare"
chapter, and with a little more I think I'll have it!
Thank you everyone, another learning experience, and now I can sleep.
* * * * * * * * * * * * * * * * * * * * * * * * * * *
| 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>
|