~cyphermox/ubuntu/precise/xscreensaver/merge-5.15-2

« back to all changes in this revision

Viewing changes to driver/lock.c

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2011-12-21 15:57:35 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: mathieu@canonical.com-20111221155735-m43kxy7824n1p36y
Merging shared upstream rev into target branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1734
1734
  /* XLookupString may return more than one character via XRebindKeysym;
1735
1735
     and on some systems it returns multi-byte UTF-8 characters (contrary
1736
1736
     to its documentation, which says it returns only Latin1.)
 
1737
 
 
1738
     It seems to only do so, however, if setlocale() has been called.
 
1739
     See the code inside ENABLE_NLS in xscreensaver.c.
1737
1740
   */
1738
1741
  int decoded_size = XLookupString (event, (char *)decoded, sizeof(decoded),
1739
1742
                                    &keysym, compose_status);