Skip to content

Commit

Permalink
Merge pull request #27 from skitt/lcall
Browse files Browse the repository at this point in the history
Set LC_ALL to control the locale of other processes.
  • Loading branch information
ashaduri authored Feb 10, 2022
2 parents 64f4a80 + c53166f commit 594f177
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/applib/async_command_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ bool AsyncCommandExecutor::execute()

std::unique_ptr<gchar*, decltype(&g_strfreev)> child_env(g_get_environ(), &g_strfreev);
if (change_lang) {
child_env.reset(g_environ_setenv(child_env.release(), "LANG", "C", TRUE));
child_env.reset(g_environ_setenv(child_env.release(), "LC_NUMERIC", "C", TRUE));
child_env.reset(g_environ_setenv(child_env.release(), "LC_ALL", "C", TRUE));
}
std::vector<std::string> envp = Glib::ArrayHandler<std::string>::array_to_vector(child_env.release(),
Glib::OWNERSHIP_DEEP);
Expand Down

0 comments on commit 594f177

Please sign in to comment.