aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-02-05 20:20:45 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-02-05 20:38:57 +0000
commit61ba1daba01dfd959d68636b8d1785d00cdf65b4 (patch)
tree8405ea57bb6ce526d984312a9bb235e5f19edcdc /src
parent06b4275c0d338a90a029ad882ad8a767de45daea (diff)
tool_operate: Moved locale setup code into operate_init()
Diffstat (limited to 'src')
-rw-r--r--src/tool_operate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index de49bc9b1..b180f067d 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -193,6 +193,11 @@ static CURLcode operate_init(struct Configurable *config)
return CURLE_FAILED_INIT;
}
+ /* Setup proper locale from environment */
+#ifdef HAVE_SETLOCALE
+ setlocale(LC_ALL, "");
+#endif
+
return CURLE_OK;
}
@@ -230,11 +235,6 @@ static int operate_do(struct Configurable *config, int argc,
** from outside of nested loops further down below.
*/
- /* setup proper locale from environment */
-#ifdef HAVE_SETLOCALE
- setlocale(LC_ALL, "");
-#endif
-
/* Parse .curlrc if necessary */
if((argc == 1) || (!curlx_strequal(argv[1], "-q"))) {
parseconfig(NULL, config); /* ignore possible failure */