diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-11-23 17:15:24 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-11-23 17:15:24 +0200 |
commit | 2d716d7574e8c00d9ff96a74ce7ac2325864af79 (patch) | |
tree | c1ad2a955df9199c6bf575f10be5b0786e5f5529 /src/w32.c | |
parent | 66124e6165642bc44a4742d5a878badd0a2c9353 (diff) | |
download | emacs-2d716d7574e8c00d9ff96a74ce7ac2325864af79.tar.gz |
File selection converted and tested.
Diffstat (limited to 'src/w32.c')
-rw-r--r-- | src/w32.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/w32.c b/src/w32.c index d57abb0b6fd..0080628e563 100644 --- a/src/w32.c +++ b/src/w32.c @@ -691,9 +691,6 @@ get_security_info (HANDLE handle, ppSecurityDescriptor)); } -static int filename_to_ansi (const char *, char *); -static int filename_to_utf16 (const char *, wchar_t *); - static BOOL WINAPI get_file_security (const char *lpFileName, SECURITY_INFORMATION RequestedInformation, @@ -1356,7 +1353,7 @@ codepage_for_filenames (CPINFO *cp_info) return file_name_codepage; } -static int +int filename_to_utf16 (const char *fn_in, wchar_t *fn_out) { int result = MultiByteToWideChar (CP_UTF8, MB_ERR_INVALID_CHARS, fn_in, -1, @@ -1383,7 +1380,7 @@ filename_to_utf16 (const char *fn_in, wchar_t *fn_out) return 0; } -static int +int filename_from_utf16 (const wchar_t *fn_in, char *fn_out) { int result = WideCharToMultiByte (CP_UTF8, 0, fn_in, -1, @@ -1410,7 +1407,7 @@ filename_from_utf16 (const wchar_t *fn_in, char *fn_out) return 0; } -static int +int filename_to_ansi (const char *fn_in, char *fn_out) { wchar_t fn_utf16[MAX_PATH]; |