Commit graph

561 commits

Author SHA1 Message Date
Alan Coopersmith
5c1cde105d Use AC_USE_SYSTEM_EXTENSIONS instead of hand-rolled check for _GNU_SOURCE
Raises minimum autoconf version required to 2.60

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-27 22:06:10 -07:00
Julien Cristau
84b7a91ef8 Fix fi_FI.UTF-8, again
Commit 97fc6babd4 "NLS: Add UTF-8 compose
file for Finnish" made fi_FI.UTF-8 use a broken empty XLC_LOCALE file.
This reverts it back to using the en_US.UTF-8 one.
2009-04-15 15:18:20 +02:00
Theppitak Karoonboonyanan
128daff442 Thai XIM not retrieve MB surrounding on UTF-8 LC
On th_TH.UTF-8 locale, Thai XIM rejects all combining characters for GTK+ apps
that use X Input Method.

This is because GTK+ imxim immodule passes surrounding text in locale encoding,
which is UTF-8 for UTF-8 locales. But current Thai XIM in Xlib assumes the
multi-byte StringConversionText response for the StringConversionCallback to
always be TIS-620, by retrieving a single byte and using it as-is.

If the Thai XIM tries to convert the multi-byte text based on locale codeset
before using it, it will work again.

X.Org But 12759 <http://bugs.freedesktop.org/show_bug.cgi?id=12759>

Signed-off-by: Theppitak Karoonboonyanan <thep@linux.thai.net>
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-04-13 17:27:03 +01:00
Theppitak Karoonboonyanan
e09f0d227f Thai XIM not filters when NumLock or CapsLock is on
The Thai XIM component in libx11 activated on 'th*' locales normally filters
input sequence according to orthographic rules. However, when NumLock/CapsLock
is on, this stops working. All sequences are passed through.

This is caused by missing masks in _XimThaiFilter(), which normally screens out
certain special keys from entering orthographic rules. Unfortunately, this
included events with NumLock/CapsLock on. Negating the masks from the check
allows the events to be tested by the rules.

X.Org Bug 12517 <http://bugs.freedesktop.org/show_bug.cgi?id=12517>

Signed-off-by: Theppitak Karoonboonyanan <thep@linux.thai.net>
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-04-13 17:26:26 +01:00
Theppitak Karoonboonyanan
d108d3c706 CharSet-to-CompoundText Conversion Failed for Thai Locales
SCIM fails to commit Thai input characters on Thai locales, because it commits
string in compound text form, which was converted via
XwcTextListToTextProperty(). But the XLC_LOCALE for th_TH and th_TH.UTF-8
declares cs1's ct_encoding as TIS620-0:GR, which was commented out in
src/xlibi18n/lcCT.c default_ct_data, in favor of ISO8859-11 ESC sequence.
So, declaring cs1 as ISO8859-11:GR instead makes it work.

Besides, for th_TH.UTF-8, adding cs2 class with ISO10646-1 encoding also adds
support for UTF-8 input.

And, along discussion in the bug, a similar problem was found for fontset, too,
by causing delays on X apps startups on systems without tis620-0 fonts. This
is normally the case, as mkfontdir and mkfontscale generate iso8859-11 entries
by default for Thai X fonts. So, Thai fontset charset is also patched.

X.Org Bug 16475 <http://bugs.freedesktop.org/show_bug.cgi?id=16475>

Signed-off-by: Theppitak Karoonboonyanan <thep@linux.thai.net>
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-04-13 17:25:14 +01:00
Alan Coopersmith
fd62d3318c Revert "Change masculine to ordmasculine in Compose file comments"
This reverts commit 892b401d5a.

As Julien Cristau correctly points out, I misread the Compose file grammar
in modules/im/ximcp/imLcPrs.c, and those are keysyms, not comments, and
the keysym is named XK_masculine in keysymdef.h.   This change is thus a
bug in the Solaris compose tables to be fixed, not an improvement to bring
upstream.
2009-04-08 19:42:25 -07:00
Alan Coopersmith
eac57c77af Version bump: 1.2.1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-07 15:38:45 -07:00
Yaakov Selkowitz (Cygwin Ports maintainer)
bfbec08bae Bug 20773: Xcursor dynamic loading on Cygwin
X.Org Bug #20773 <http://bugs.freedesktop.org/show_bug.cgi?id=20773>
Patch #24096 <http://bugs.freedesktop.org/attachment.cgi?id=24096>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-07 13:49:18 -07:00
Alan Coopersmith
c8c4161491 Fix a several sparse warnings: Using plain integer as NULL pointer
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-06 16:52:46 -07:00
Alan Coopersmith
b336c3d0cc Further ansify prototypes & reduce #ifdefs in locking.c
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-06 16:32:05 -07:00
Alan Coopersmith
892b401d5a Change masculine to ordmasculine in Compose file comments
Matches the ordfeminine name used for the matching character,
and the ordmasculine name used in many font descriptions of the glyph.

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-06 10:50:09 -07:00
Julien Cristau
e3198b55dc Add a ru_RU.UTF-8 locale
Based on patch by Eugene Konev <ejka@imfi.kspu.ru> for X.Org 6.9.0.

Debian bug#330144 <http://bugs.debian.org/330144>
X.Org bug#15887 <http://bugs.freedesktop.org/show_bug.cgi?id=15887>
2009-04-06 17:30:52 +02:00
Alan Coopersmith
d239de9452 Delete some unused "#ifdef notdef" static functions
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-25 17:59:09 -07:00
Alan Coopersmith
4281892e31 Remove _XP_PRINT_SERVER_ #ifdefs from Xrm.c
This copy of Xrm.c is never compiled into the Xprint server any more, so
this old code-sharing #ifdef from the monolith tree isn't needed.

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-25 17:52:51 -07:00
Alan Coopersmith
27a2e16e8e makekeys: combine malloc(strlen)+strcpy into strdup
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-17 18:38:58 -07:00
Alan Coopersmith
78a894231a When makekeys fails to find a good hash, print error instead of divide-by-zero
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-17 15:42:19 -07:00
Alan Coopersmith
c9f84af591 Remove ifdef checks for macII left over from ancient A/UX 3.0 support
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-17 14:59:16 -07:00
Alan Coopersmith
4b90da0ffb XErrorDB additions for DRI2 requests
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 18:37:49 -07:00
Alan Coopersmith
273f45af14 XErrorDB additions for XInput errors and new XInput 1.5 requests
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 18:35:44 -07:00
Alan Coopersmith
90ef36f633 XErrorDB additions for RANDR 1.3
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 18:23:05 -07:00
Lubos Lunak
124a4efacc XErrorDB updates for XTEST, RANDR, DAMAGE extensions
From http://lists.freedesktop.org/archives/xorg/2008-January/031937.html

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 18:03:36 -07:00
Lubos Lunak
80811846e3 XGetErrorText() fails for extension error codes equal to the error base
From http://lists.freedesktop.org/archives/xorg/2008-January/031937.html

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 17:57:52 -07:00
Milos Komarcevic
da95ecbbdc Bug 11456: Serbian locale updates (sr_RS and sr_ME)
X.Org Bug #11456 <http://bugs.freedesktop.org/show_bug.cgi?id=11456>
Patch #23937 <http://bugs.freedesktop.org/attachment.cgi?id=23937>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 17:43:26 -07:00
Alan Coopersmith
934a6c0519 Bug 10082: Compose entries for some standard mathematical operators
X.Org Bug #10082 <http://bugs.freedesktop.org/show_bug.cgi?id=10082>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 14:56:39 -07:00
Alan Coopersmith
abf4da1ed0 Bug 14651: We need to add new locale specification for Belarusian Latin locale
X.Org Bug #14651 <http://bugs.freedesktop.org/show_bug.cgi?id=14651>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 14:31:15 -07:00
Caolan McNamara
837703c865 Bug 20575: man page for XCreatePixmapFromBitmapData doesn't match signature
X.Org Bug #20575 <http://bugs.freedesktop.org/show_bug.cgi?id=20575>
Patch #23717 <http://bugs.freedesktop.org/attachment.cgi?id=23717>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 14:15:50 -07:00
Alan Coopersmith
2219901887 Correct locale alias for sh_BA.ISO8859-2@bosnia (should be sr, not nr)
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 13:28:18 -07:00
Alan Coopersmith
4c63c27eab Bug 9953: Please provide locale alias hu_HU.utf8
X.Org Bug #9953 <http://bugs.freedesktop.org/show_bug.cgi?id=9953>
Debian Bug #407573 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=407573>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-12 18:58:27 -07:00
Alan Coopersmith
501f4e0ada Bug 6820: Xlib shouldn't handle EAGAIN as a fatal IO error
X.Org Bug #6820 <http://bugs.freedesktop.org/show_bug.cgi?id=6820>
Patch #17637 <http://bugs.freedesktop.org/attachment.cgi?id=17637>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-12 17:38:21 -07:00
Paul Bender
7b9c543e72 Bug 15664: xau & xdmcp not needed in x11.pc dependencies when built with xcb
X.Org bug #15664 <https://bugs.freedesktop.org/show_bug.cgi?id=15664>
Patch #16128 <https://bugs.freedesktop.org/attachment.cgi?id=16128>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-12 17:11:42 -07:00
Xue Wei
fd2cf1ef66 Add UTF-8 locale entries for es_US, kk_KZ, mt_MT, and sh_BA
Sun bug 6809309 Add new utf8 locales supported by Xlib
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6809309>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-04 19:33:50 -08:00
Alan Coopersmith
cb70c9bc43 Add --with-locale-lib-dir configure option to set locale lib install dir
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-23 19:29:24 -08:00
Alan Coopersmith
ccd3584f03 Incorporate more locale names/aliases from Solaris libX11
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-23 19:29:23 -08:00
Alan Coopersmith
83ce4daefd Incorporate char range comments from Solaris version of ksc5601.h
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-23 19:29:23 -08:00
Chris Ball
ee279c84e3 Fix fi_FI locale install directory.
fi_FI was setting "x11thislocaledir" to en_US, with the result that its
locale data was written in that locale dir.

Signed-off-by: Chris Ball <cjb@laptop.org>
2009-02-21 14:48:42 -05:00
Emilio Jesús Gallego Arias
da6bbca07c xcb_io: Avoid datatype overflow on AMD64 and friends. 2009-02-21 20:17:23 +01:00
Chris Ball
4ef6491afa Build fix for fi_FI.
Commit 642c4e928e770e0.. instructs make to enter nls/fi_FI, but no
Makefile is written there by configure.

Signed-off-by: Chris Ball <cjb@laptop.org>
2009-02-21 12:51:03 -05:00
Julien Cristau
642c4e928e nls: actually use the fi_FI.UTF-8 files
The subdir wasn't added to nls/Makefile.am
2009-02-21 12:21:30 +01:00
Alan Coopersmith
9bad8309ef flags member of Display structure needs to be marked volatile
Since the Xlib multithreaded code checks the flags variable in _XFlushInt
to see if the other threads are done yet, it has to be marked volatile so
the compiler doesn't optimize out re-loading it on each trip through the
while loop and end up in an impossible-to-exit infinite loop of CPU chewing.

Part of fix for Sun bug 6409332: infinite loop in XFlushInt() on x86/32-bit
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6409332>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-20 15:17:13 -08:00
Xue Wei
ef5c446395 Add nn_NO.UTF-8 to compose.dir.pre for Norwegian Nynorsk
Sun bug 6691236: Swing applications dump core when locale is nn_NO.UTF-8
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6691236>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-20 15:16:59 -08:00
Xue Wei
3822f2654e Add locale aliases for no_NO & sh_BA locale variants
Fixes Sun bug id 6691219: xterm refuses to start in some locales
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6691219>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-20 15:15:10 -08:00
Xue Wei
63b6b5b5f5 Add kk_KZ.UTF-8 to locale.dir.pre for Kazakhstan
Fixes Sun bug id 6737254 ("kk_KZ.UTF-8 locale: In Java applications
 changing keyboard layout with gimlet does not work")
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6737254>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-20 14:23:11 -08:00
Julien Cristau
d497301707 Bump to 1.2 2009-02-17 16:09:41 +01:00
Julien Cristau
990e71361d Check Xmalloc return value in _XConnectXCB
X.Org bug#19137 <http://bugs.freedesktop.org/show_bug.cgi?id=19137>

Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-02-17 15:24:43 +01:00
James Cloos
b4b5893f69 dolt: allow older versions of bash to compile the library
Cf xserver commit 7be6520d and bugzilla #19031.
2009-02-14 12:35:56 -05:00
Will Thompson
20982d6866 NLS: Compose: Non-aliasing CCCP
Oops, cccp aliased cc for question mark.  Upper-case it to avoid fail.

Signed-off-by: Will Thompson <will@willthompson.co.uk>
Signed-off-by: Daniel Stone <daniel@fooishbar.org> (sorry)
2009-02-05 02:53:06 +11:00
Will Thompson
f052665394 Add two essential compose sequences
Signed-off-by: Will Thompson <will@willthompson.co.uk>
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-02-05 02:23:01 +11:00
Alan Coopersmith
d7bea6fa90 Add README with pointers to mailing list, bugzilla & git repos
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-02 20:34:31 -08:00
Paulo Cesar Pereira de Andrade
f682c27e93 Check if a function argument is NULL.
This was an addition to patch (also by me)
https://bugs.freedesktop.org/attachment.cgi?id=14660
that was not added when rediscovering/correcting the problem.
2009-02-02 16:36:39 -02:00
Paulo Cesar Pereira de Andrade
427e9d45d4 Allow multiple inclusions of cursorfont.h, cosmetic patch. 2009-02-02 16:31:05 -02:00