diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-12-02 16:06:10 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-12-02 16:06:10 +0000 |
commit | a887cf0ef548eafaa7f8d916dd64828501622218 (patch) | |
tree | ec8fc6dbcfe7dd19a03a287545eae8056ce4fafb /winsup/cygwin/include/sys | |
parent | 13a20f9565b3ef6081123382066d9c9bf49abc4c (diff) | |
download | cygnal-a887cf0ef548eafaa7f8d916dd64828501622218.tar.gz cygnal-a887cf0ef548eafaa7f8d916dd64828501622218.tar.bz2 cygnal-a887cf0ef548eafaa7f8d916dd64828501622218.zip |
* path.cc (conv_path_list): Take cygwin_conv_path_t as third parameter.
Allow all types of CCP conversions. Accommodate throughout.
(cygwin_conv_path): Use current ANSI or OEM codepage for WIN_A
conversions, depending on current file API codepage setting.
(cygwin_conv_path_list): Allow all CCP conversion types.
* include/sys/cygwin.h (CCP_CONVTYPE_MASK): Add to cygwin_conv_path_t
enum for convenience.
Diffstat (limited to 'winsup/cygwin/include/sys')
-rw-r--r-- | winsup/cygwin/include/sys/cygwin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/include/sys/cygwin.h b/winsup/cygwin/include/sys/cygwin.h index 5fe3af794..85c452677 100644 --- a/winsup/cygwin/include/sys/cygwin.h +++ b/winsup/cygwin/include/sys/cygwin.h @@ -50,6 +50,8 @@ enum CCP_WIN_A_TO_POSIX, /* from is char*, to is char* */ CCP_WIN_W_TO_POSIX, /* from is wchar_t*, to is char* */ + CCP_CONVTYPE_MASK = 3, + /* Or these values to the above as needed. */ CCP_ABSOLUTE = 0, /* Request absolute path (default). */ CCP_RELATIVE = 0x100 /* Request to keep path relative. */ |