[PD-dev] [pure-data:patches] #556 fix [declare -stdpath] on w32

Ticket 556 556 at patches.pure-data.p.re.sf.net
Wed Sep 9 15:53:22 CEST 2015




---

** [patches:#556] fix [declare -stdpath] on w32**

**Status:** open
**Group:** bugfix
**Labels:** puredata declare stdpath 
**Created:** Wed Sep 09, 2015 01:53 PM UTC by Anonymous
**Last Updated:** Wed Sep 09, 2015 01:53 PM UTC
**Owner:** Miller Puckette
**Attachments:**

- [0001-fix-check_exists-on-W32.patch](http://sourceforge.net/p/pure-data/patches/556/attachment/0001-fix-check_exists-on-W32.patch) (2.0 kB; text/x-diff)


on w32, we cannot use `open()` to detect whether a directory exists (as it will always fail).
instead this patch uses `access()` (which should be faster than a full `open()`/`close()` cycle on other platforms as well).

unicode support makes everything a bit more complicated (the patch copies the implementation from `sys_open()`).

also fixed a small typo, that would append a garbage string to the path if the given path was absolute.


---

Sent from sourceforge.net because pd-dev at lists.iem.at is subscribed to http://sourceforge.net/p/pure-data/patches/

To unsubscribe from further messages, a project admin can change settings at http://sourceforge.net/p/pure-data/admin/patches/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20150909/19079d70/attachment.html>


More information about the Pd-dev mailing list