FreeBSD Bugzilla – Attachment 145995 Details for
Bug 192783
x11/slim does not support UTF-8 characters input
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
slimlock.cpp patch
patch-slimlock.cpp (text/plain), 1.15 KB, created by
DaLynX
on 2014-08-18 18:48:02 UTC
(
hide
)
Description:
slimlock.cpp patch
Filename:
MIME Type:
Creator:
DaLynX
Created:
2014-08-18 18:48:02 UTC
Size:
1.15 KB
patch
obsolete
>--- slimlock.cpp.orig 2014-08-12 18:08:28.000000000 +0200 >+++ slimlock.cpp 2014-08-12 18:09:24.000000000 +0200 >@@ -48,19 +48,19 @@ > void *RaiseWindow(void *data); > > // I really didn't wanna put these globals here, but it's the only way... >-Display* dpy; >-int scr; >-Window win; >-Cfg* cfg; >-Panel* loginPanel; >-string themeName = ""; >- >-pam_handle_t *pam_handle; >-struct pam_conv conv = {ConvCallback, NULL}; >- >-CARD16 dpms_standby, dpms_suspend, dpms_off, dpms_level; >-BOOL dpms_state, using_dpms; >-int term; >+static Display* dpy; >+static int scr; >+static Window win; >+static Cfg* cfg; >+static Panel* loginPanel; >+static string themeName = ""; >+ >+static pam_handle_t *pam_handle; >+static struct pam_conv conv = {ConvCallback, NULL}; >+ >+static CARD16 dpms_standby, dpms_suspend, dpms_off, dpms_level; >+static BOOL dpms_state, using_dpms; >+static int term; > > static void > die(const char *errstr, ...) { >@@ -73,6 +73,10 @@ > } > > int main(int argc, char **argv) { >+ >+ // We need to set the locale to get the input encoded in UTF-8 >+ setlocale (LC_ALL, ""); >+ > if((argc == 2) && !strcmp("-v", argv[1])) > die(APPNAME"-"VERSION", © 2010-2012 Joel Burget\n"); > else if(argc != 1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192783
:
145959
|
145990
|
145992
|
145993
|
145994
|
145995
|
145996
|
145997
|
145998
|
146000
|
146003
|
146476