]> git.proxmox.com Git - libgit2.git/commit - src/win32/posix_w32.c
windows: Add support for non-UTF codepages
authorVicent Marti <tanoku@gmail.com>
Wed, 26 Oct 2011 23:43:55 +0000 (16:43 -0700)
committerCarlos Martín Nieto <carlos@cmartin.tk>
Thu, 27 Oct 2011 00:43:44 +0000 (17:43 -0700)
commit11d51ca63184b760e2537bbe08c5ca4c63bd4854
tree3ed2702d52187a47ce4a4ad80f2b2ae0c1010beb
parentc2fbe423465e1fa02a7e681f6b4aaee877e3de03
windows: Add support for non-UTF codepages

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.
include/git2/windows.h [new file with mode: 0644]
src/config.c
src/win32/dir.c
src/win32/posix.h
src/win32/posix_w32.c
src/win32/utf-conv.c [new file with mode: 0644]
src/win32/utf-conv.h [new file with mode: 0644]
src/win32/utf8-conv.c [deleted file]
src/win32/utf8-conv.h [deleted file]