mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 06:47:53 +00:00

Our previous assumption that all paths in Windows are encoded in UTF-8 is rather weak, specially when considering that Git is encoding-agnostic. These set of functions allow the user to change the library's active codepage globally, so it is possible to access paths and files on all international versions of Windows. Note that the default encoding here is UTF-8 because we assume that 99% of all Git repositories will be in UTF-8. Also, if you use non-ascii characters in paths, anywhere, please burn on a fire.
18 lines
386 B
C
18 lines
386 B
C
/*
|
|
* Copyright (C) 2009-2011 the libgit2 contributors
|
|
*
|
|
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
|
* a Linking Exception. For full terms see the included COPYING file.
|
|
*/
|
|
|
|
#include <wchar.h>
|
|
|
|
#ifndef INCLUDE_git_utfconv_h__
|
|
#define INCLUDE_git_utfconv_h__
|
|
|
|
wchar_t* gitwin_to_utf16(const char* str);
|
|
char* gitwin_from_utf16(const wchar_t* str);
|
|
|
|
#endif
|
|
|