[polari/wip/carlosg/tracker: 6/15] log-tool: Set locale
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/carlosg/tracker: 6/15] log-tool: Set locale
- Date: Sun, 24 Feb 2019 23:12:37 +0000 (UTC)
commit 5349835feb3346ad8b9e98ba1fa9f4a4ec741e12
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Feb 24 22:53:13 2019 +0100
log-tool: Set locale
This will ensure FTS is properly setup for import, and eliminates
the need to regenerate it from scratch (due to the locale change)
when running the real thing later on.
src/polari-log-tool.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/polari-log-tool.c b/src/polari-log-tool.c
index ee80cb7..c33dc0a 100644
--- a/src/polari-log-tool.c
+++ b/src/polari-log-tool.c
@@ -16,6 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <locale.h>
+
#include "lib/polari-tpl-importer.h"
#include "lib/polari-message.h"
#include "lib/polari-util.h"
@@ -244,6 +246,8 @@ main (int argc,
{
const char *command;
+ setlocale (LC_ALL, "");
+
g_set_prgname ("polari-log-tool");
g_set_application_name ("Polari Log Tool");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]