File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ int main(int argc, const char **argv)
32
32
*/
33
33
sanitize_stdfds ();
34
34
35
- git_extract_argv0_path (argv [0 ]);
36
-
37
35
git_setup_gettext ();
38
36
39
37
attr_start ();
40
38
39
+ git_extract_argv0_path (argv [0 ]);
40
+
41
41
restore_sigpipe_to_default ();
42
42
43
43
return cmd_main (argc , argv );
Original file line number Diff line number Diff line change 6
6
#include "gettext.h"
7
7
#include "strbuf.h"
8
8
#include "utf8.h"
9
- #include "cache.h"
10
- #include "exec_cmd.h"
11
9
12
10
#ifndef NO_GETTEXT
13
11
# include <locale.h>
@@ -162,20 +160,14 @@ static void init_gettext_charset(const char *domain)
162
160
void git_setup_gettext (void )
163
161
{
164
162
const char * podir = getenv ("GIT_TEXTDOMAINDIR" );
165
- char * p = NULL ;
166
163
167
164
if (!podir )
168
165
podir = GIT_LOCALE_PATH ;
169
- if (!is_absolute_path (podir ))
170
- podir = p = system_path (podir );
171
-
172
166
bindtextdomain ("git" , podir );
173
167
setlocale (LC_MESSAGES , "" );
174
168
setlocale (LC_TIME , "" );
175
169
init_gettext_charset ("git" );
176
170
textdomain ("git" );
177
-
178
- free (p );
179
171
}
180
172
181
173
/* return the number of columns of string 's' in current locale */
You can’t perform that action at this time.
0 commit comments