aboutsummaryrefslogtreecommitdiffstats
path: root/gettext.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-10-07 17:19:58 -0700
committerJunio C Hamano <gitster@pobox.com>2022-10-07 17:19:59 -0700
commit410a0e520dcc91d13f77fd812f068161859883fc (patch)
tree0e4e7529bb2c344bfccaef6396f5c71d2d04519f /gettext.c
parent3dcec76d9df911ed8321007b1d197c1a206dc164 (diff)
parent1819ad327b7a1f19540a819813b70a0e8a7f798f (diff)
downloadgit-410a0e520dcc91d13f77fd812f068161859883fc.tar.gz
Merge branch 'ds/use-platform-regex-on-macos'
With a bit of header twiddling, use the native regexp library on macOS instead of the compat/ one. * ds/use-platform-regex-on-macos: grep: fix multibyte regex handling under macOS
Diffstat (limited to 'gettext.c')
-rw-r--r--gettext.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gettext.c b/gettext.c
index bb5ba1fe7c..f139008d0a 100644
--- a/gettext.c
+++ b/gettext.c
@@ -10,7 +10,6 @@
#include "config.h"
#ifndef NO_GETTEXT
-# include <locale.h>
# include <libintl.h>
# ifdef GIT_WINDOWS_NATIVE
@@ -80,7 +79,6 @@ static int test_vsnprintf(const char *fmt, ...)
static void init_gettext_charset(const char *domain)
{
- setlocale(LC_CTYPE, "");
charset = locale_charset();
bind_textdomain_codeset(domain, charset);