mirror of
https://github.com/git/git.git
synced 2026-02-13 11:21:10 +00:00
squash! gettext: always use UTF-8 on native Windows
In this developers' setup, HAVE_LIBCHARSET_H is apparently defined, but we *really* want to override the locale_charset() here. Reminder: at the next merging rebase, fix the ACP typo as requested by Karsten.
This commit is contained in:
@@ -10,10 +10,10 @@
|
||||
#ifndef NO_GETTEXT
|
||||
# include <locale.h>
|
||||
# include <libintl.h>
|
||||
# ifdef HAVE_LIBCHARSET_H
|
||||
# include <libcharset.h>
|
||||
# elif defined GIT_WINDOWS_NATIVE
|
||||
# if defined GIT_WINDOWS_NATIVE
|
||||
# define locale_charset() "UTF-8"
|
||||
# elif defined HAVE_LIBCHARSET_H
|
||||
# include <libcharset.h>
|
||||
# else
|
||||
# include <langinfo.h>
|
||||
# define locale_charset() nl_langinfo(CODESET)
|
||||
|
||||
Reference in New Issue
Block a user