Commit graph

547 commits

Author SHA1 Message Date
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
Paulo Cesar Pereira de Andrade
b91524a53e Don't add prototypes for functions that don't exist.
Note that a full review was not done, only for functions that receive
char/short arguments, or one of it's parameters is a function pointer
that requires char/short arguments.
2009-02-02 16:30:39 -02:00
Paulo Cesar Pereira de Andrade
537eb52fe2 WORD64 compile fix. This bug catched on a overview of the code.
The code is wrong since the first git revision, so it seens that it has
not been compiled with WORD64 for quite some time, there is also another
interesting code in xkb/XKBRdBuf.c:
  <hash>ifdef WORD64
  _XkbWriteCopyData32 Not Implemented Yet for sizeof(int)==8
  <hash>endif
and possibly there are other similar problems.
2009-02-02 16:29:27 -02:00
Brian Rogers
ffd0300fb7 Initialize event_notify after allocating the memory for it.
An uninitialized or otherwise invalid condition variable can apparently
cause a hang in pthread_cond_broadcast. Ekiga, openoffice, and xine
at least are freezing as a result of event_notify never being initialized.

Signed-off-by: Brian Rogers <brian@xyzw.org>
Signed-off-by: Bart Massey <bart@cs.pdx.edu>
2009-01-31 13:36:45 -08:00
James Cloos
97fc6babd4 NLS: Add UTF-8 compose file for Finnish
From bug report:

  https://bugs.freedesktop.org/show_bug.cgi?id=18747
2009-01-29 20:17:48 -05:00
Paulo Cesar Pereira de Andrade
1bd2966ed8 patches to avoid gcc warnings for libX11 (#4)
Author is Peter Breitenlohner <peb@mppmu.mpg.de>
Bug #17946, attachment #19443

This patch avoids the gcc warning
	../../../../libX11-1.1.5/modules/im/ximcp/imDefLkup.c:223: warning: passing arg 1 of `_XimProcSyncReply' from incompatible pointer type
(same as already done at other places)

BTW: what is the difference between XIM (the type of ic->core.im)
and Xim ?
2009-01-29 20:25:15 -02:00
Paulo Cesar Pereira de Andrade
f16dd6af3e patches to avoid gcc warnings for libX11 (#3)
Author is Peter Breitenlohner <peb@mppmu.mpg.de>
Bug #17946, attachment #19441

This patch avoids the two gcc warnings
	../../../../libX11-1.1.5/modules/im/ximcp/imRm.c:413: warning: assignment discards qualifiers from pointer target type
	../../../../libX11-1.1.5/modules/im/ximcp/imRm.c:450: warning: assignment discards qualifiers from pointer target type

Note, that this as a rather crude fix of the problem (and it is really a
shame to cast name_table to non-const).

The right solution would be to declare XIMValuesList.supported_values
(in include/X11/Xlib.h) as 'const char **' (or '_Xconst char **').
This will, however, require extensive modifications in various places.
2009-01-29 20:22:21 -02:00
Paulo Cesar Pereira de Andrade
cce75c5dce patches to avoid gcc warnings for libX11 (#2)
Author is Peter Breitenlohner <peb@mppmu.mpg.de>
Bug #17946, attachment #19440

Avoid a preprocessor message
	<stdin>:194: warning: no newline at end of file

Two more such warnings (in XkbSAGroup.man and XkbSASetGroup.man)
seem to be caused by a truncated (or otherwise incomplete)
manpage.
2009-01-29 20:20:18 -02:00
Paulo Cesar Pereira de Andrade
692baebcc5 patches to avoid gcc warnings for libX11 (#1)
Author is Peter Breitenlohner <peb@mppmu.mpg.de>
Bug #17946, attachment #19439

Define as 1 (one) as done by autoconf and the command line
option, e.g. -DX11_t, not as empty.

This avoids the gcc (3.4.6) warnings:
	../../libX11-1.1.5/src/x11_trans.c:27:1: warning: "X11_t" redefined
	<command line>:7:1: warning: this is the location of the previous definition
	../../libX11-1.1.5/src/x11_trans.c:28:1: warning: "TRANS_CLIENT" redefined
	<command line>:8:1: warning: this is the location of the previous definition

Similarly, follow the autoconf convention to define XTHREADS
and XUSE_MTSAFE_API as one.

This avoids analogous warnings when compiling libXcomposite,
libXcursor, and libXdamage.

No reason to AC_SUBST XTHREADS and XUSE_MTSAFE_API (unused).
2009-01-29 20:17:14 -02:00
Paulo Cesar Pereira de Andrade
a1977883c9 Janitor: Correct some gcc/sparse warnings.
Most remaining warnings are about XIM/Xim to/from conversion
and discarding const from pointers.
2009-01-29 15:01:06 -02:00
Paulo Cesar Pereira de Andrade
8ba0ca32a6 Janitor: ansification, make distcheck, compiler warnings.
Only convert to use "ansi prototypes" the functions warned from
compilation with "./autogen.sh --prefix=/usr", on a Linux computer.

  Also, only address "trivial" compiler warning fixes in this commit.

  The new .gitignore is the output of a command like:
% find . -name .gitignore -exec cat {} \; | sort | uniq
and only the toplevel .gitignore file was kept.
2009-01-28 20:31:42 -02:00
Peter Hutterer
091c1624fd Fix wrong implies symbol.
Quote Simos Xenitellis:
> I checked the gtk+ commit logs that go back to 2000, and I see that still it
> was
>
>   { 0x08ce, 0x21d2 }, /*                     implies ⇒ RIGHTWARDS
> DOUBLE ARROW */
>
> In XFree86, it appears there was an error when they converted the
> original table to
> http://cvsweb.xfree86.org/cvsweb/xc/lib/X11/imKStoUCS.c?rev=1.1&content-type=text/vnd.viewcvs-markup
> and the problem still shows up there (November 2000).

http://lists.freedesktop.org/archives/xorg/2008-October/039743.html

Reported by Erik Streb del Toro.
2009-01-13 12:05:54 +10:00
James Cloos
e32521f19e [i18n] s/U00DC/Udiaeresis/g
The xkeyboard-config keyboards generate the symbol Udiaeresis, not
U00DC.  Make sure the relevant Compose sequences expect the symbol
which the keyboards actually send.
2008-12-07 04:13:34 -05:00
James Cloos
b7502abfe2 Revert "For nls/*.pre, allow people to comment lines by starting them with '##'."
As of commit c9d20e3 the initial double-hashes are replaced with proper C comments.

This reverts commit a225a0be48.
2008-12-07 04:09:46 -05:00
James Cloos
c9d20e3f69 Use C comments rather than initial doubled hashes to exclude lines from .pre files 2008-12-07 04:08:23 -05:00