X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Flock.c;h=296bcd02dc0f52c607588d9ce1b6ebb9af1e4514;hb=c70f94f648d51bb4828193124f325fa52b0e57f3;hp=3a84355a54c0f748a743a126466f94831e812e63;hpb=5f9c47ca98dd43d8f59b7c27d3fde6edfde4fe21;p=xscreensaver diff --git a/driver/lock.c b/driver/lock.c index 3a84355a..296bcd02 100644 --- a/driver/lock.c +++ b/driver/lock.c @@ -1734,6 +1734,9 @@ handle_passwd_key (saver_info *si, XKeyEvent *event) /* XLookupString may return more than one character via XRebindKeysym; and on some systems it returns multi-byte UTF-8 characters (contrary to its documentation, which says it returns only Latin1.) + + It seems to only do so, however, if setlocale() has been called. + See the code inside ENABLE_NLS in xscreensaver.c. */ int decoded_size = XLookupString (event, (char *)decoded, sizeof(decoded), &keysym, compose_status);