summaryrefslogtreecommitdiff
path: root/src/win32/utf-conv.h
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2012-09-04 14:19:24 -0700
committerVicent Martí <vicent@github.com>2012-09-04 14:19:24 -0700
commit4d3834038bd0aaef63d62c54900f6ddafec09515 (patch)
treee1cc8e3bc55d73e3e00f876a220fcfc462938f60 /src/win32/utf-conv.h
parentc9d223f0de390e8b28af7c7513d03340001c2580 (diff)
parent0f4c61754bd123b3bee997b397187c9b813ca3e4 (diff)
downloadlibgit2-4d3834038bd0aaef63d62c54900f6ddafec09515.tar.gz
Merge pull request #856 from libgit2/utf8-win
Windows: Perform UTF-8 path conversion on the Stack
Diffstat (limited to 'src/win32/utf-conv.h')
-rw-r--r--src/win32/utf-conv.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/win32/utf-conv.h b/src/win32/utf-conv.h
index ae9f29f6c..3bd1549bc 100644
--- a/src/win32/utf-conv.h
+++ b/src/win32/utf-conv.h
@@ -10,9 +10,10 @@
#ifndef INCLUDE_git_utfconv_h__
#define INCLUDE_git_utfconv_h__
-wchar_t* gitwin_to_utf16(const char* str);
-int gitwin_append_utf16(wchar_t *buffer, const char *str, size_t len);
-char* gitwin_from_utf16(const wchar_t* str);
+#define GIT_WIN_PATH (260 + 1)
+
+void git__utf8_to_16(wchar_t *dest, size_t length, const char *src);
+void git__utf16_to_8(char *dest, const wchar_t *src);
#endif