LC_ALL needs locale.h

Bug #999438 reported by reed
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LightDM GTK Greeter
Fix Released
Undecided
Unassigned

Bug Description

1.1.5 tarball

Making all in src
  CC lightdm_gtk_greeter-lightdm-gtk-greeter.o
lightdm-gtk-greeter.c: In function 'main':
lightdm-gtk-greeter.c:685: warning: implicit declaration of function 'setlocale'
lightdm-gtk-greeter.c:685: warning: nested extern declaration of 'setlocale'
lightdm-gtk-greeter.c:685: error: 'LC_ALL' undeclared (first use in this function)
lightdm-gtk-greeter.c:685: error: (Each undeclared identifier is reported only once
lightdm-gtk-greeter.c:685: error: for each function it appears in.)
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/new/lightdm-gtk-greeter/work/lightdm-gtk-greeter-1.1.5/src

I am using this patch:

--- src/lightdm-gtk-greeter.c.orig 2012-05-14 21:36:33.000000000 -0500
+++ src/lightdm-gtk-greeter.c 2012-05-14 21:36:55.000000000 -0500
@@ -10,6 +10,7 @@
  */

 #include <stdlib.h>
+#include <locale.h>
 #include <gtk/gtk.h>
 #include <glib/gi18n.h>
 #include <cairo-xlib.h>

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Thanks, committed.

Changed in lightdm-gtk-greeter:
status: New → Fix Committed
Changed in lightdm-gtk-greeter:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.