Enlightenment CVS committal
Author : pfritz
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_misc.c
Log Message:
set the LC_COLLATE if it isn't already set
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_misc.c,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -3 -r1.105 -r1.106
--- ewl_misc.c 10 Nov 2007 22:40:43 -0000 1.105
+++ ewl_misc.c 12 Nov 2007 11:17:57 -0000 1.106
@@ -1,4 +1,5 @@
/* vim: set sw=8 ts=8 sts=8 noexpandtab: */
+#include <locale.h>
#include "ewl_base.h"
#include "ewl_icon_theme.h"
#include "ewl_io_manager.h"
@@ -145,11 +146,19 @@
int
ewl_init(int *argc, char **argv)
{
+ const char *locale;
+
DENTER_FUNCTION(DLEVEL_STABLE);
/* check if we are already initialized */
if (++ewl_init_count > 1)
DRETURN_INT(ewl_init_count, DLEVEL_STABLE);
+
+ /* set the locale for string collation if it isn't already set */
+ locale = setlocale(LC_COLLATE, NULL);
+ if (strcmp(locale, "C") || strcmp(locale, "POSIX")) {
+ setlocale(LC_COLLATE, "");
+ }
shutdown_queue = ecore_list_new();
if (!shutdown_queue) {
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs