Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/libX11/dist merge libX11 1.7.1.
details: https://anonhg.NetBSD.org/xsrc/rev/e2fdd319e8bc
branches: trunk
changeset: 10720:e2fdd319e8bc
user: mrg <mrg%NetBSD.org@localhost>
date: Wed May 19 08:20:08 2021 +0000
description:
merge libX11 1.7.1.
diffstat:
external/mit/libX11/dist/man/XCreateGC.man | 8 +-----
external/mit/libX11/dist/nls/en_US.UTF-8/Compose.pre | 23 +++++++++++--------
external/mit/libX11/dist/src/Font.c | 4 ++-
external/mit/libX11/dist/src/FontNames.c | 3 ++
4 files changed, 21 insertions(+), 17 deletions(-)
diffs (174 lines):
diff -r cbf86eb954e1 -r e2fdd319e8bc external/mit/libX11/dist/man/XCreateGC.man
--- a/external/mit/libX11/dist/man/XCreateGC.man Wed May 19 08:19:10 2021 +0000
+++ b/external/mit/libX11/dist/man/XCreateGC.man Wed May 19 08:20:08 2021 +0000
@@ -160,7 +160,7 @@
.B XGetGCValues
function returns the components specified by valuemask for the specified GC.
If the valuemask contains a valid set of GC mask bits
-.Pn ( GCFunction ,
+.RB ( GCFunction ,
.BR GCPlaneMask ,
.BR GCForeground ,
.BR GCBackground ,
@@ -332,7 +332,6 @@
(1L<<22)
T}
.TE
-.IN "XGCValues" "" "@DEF@"
.LP
.EX
/\&* Values */
@@ -373,7 +372,7 @@
but special applications may use other functions,
particularly in concert with particular planes of a color display.
The 16 GC functions, defined in
-.hN X11/X.h ,
+.BR X11/X.h ,
are:
.\" are listed in Table 5-1 along with the
.\"the associated hexadecimal code
@@ -506,10 +505,8 @@
.TE
.LP
Many graphics operations depend on either pixel values or planes in a GC.
-.IN "Pixel value"
The planes attribute is of type long, and it specifies which planes of the
destination are to be modified, one bit per plane.
-.IN "Plane" "mask"
A monochrome display has only one plane and
will be the least significant bit of the word.
As planes are added to the display hardware, they will occupy more
@@ -623,7 +620,6 @@
.TE
.LP
The cap-style defines how the endpoints of a path are drawn:
-.IN "Graphics context" "path"
.TS
lw(1.0i) lw(4.5i).
T{
diff -r cbf86eb954e1 -r e2fdd319e8bc external/mit/libX11/dist/nls/en_US.UTF-8/Compose.pre
--- a/external/mit/libX11/dist/nls/en_US.UTF-8/Compose.pre Wed May 19 08:19:10 2021 +0000
+++ b/external/mit/libX11/dist/nls/en_US.UTF-8/Compose.pre Wed May 19 08:20:08 2021 +0000
@@ -924,9 +924,11 @@
<Multi_key> <e> <minus> : "ē" U0113 # LATIN SMALL LETTER E WITH MACRON
<dead_breve> <E> : "Ĕ" U0114 # LATIN CAPITAL LETTER E WITH BREVE
<Multi_key> <U> <E> : "Ĕ" U0114 # LATIN CAPITAL LETTER E WITH BREVE
+<Multi_key> <u> <E> : "Ĕ" U0114 # LATIN CAPITAL LETTER E WITH BREVE
<Multi_key> <b> <E> : "Ĕ" U0114 # LATIN CAPITAL LETTER E WITH BREVE
<dead_breve> <e> : "ĕ" U0115 # LATIN SMALL LETTER E WITH BREVE
<Multi_key> <U> <e> : "ĕ" U0115 # LATIN SMALL LETTER E WITH BREVE
+<Multi_key> <u> <e> : "ĕ" U0115 # LATIN SMALL LETTER E WITH BREVE
<Multi_key> <b> <e> : "ĕ" U0115 # LATIN SMALL LETTER E WITH BREVE
<dead_abovedot> <E> : "Ė" U0116 # LATIN CAPITAL LETTER E WITH DOT ABOVE
<Multi_key> <period> <E> : "Ė" U0116 # LATIN CAPITAL LETTER E WITH DOT ABOVE
@@ -960,14 +962,18 @@
<Multi_key> <asciicircum> <g> : "ĝ" U011D # LATIN SMALL LETTER G WITH CIRCUMFLEX
<dead_breve> <G> : "Ğ" U011E # LATIN CAPITAL LETTER G WITH BREVE
<Multi_key> <U> <G> : "Ğ" U011E # LATIN CAPITAL LETTER G WITH BREVE
+<Multi_key> <u> <G> : "Ğ" U011E # LATIN CAPITAL LETTER G WITH BREVE
<Multi_key> <G> <U> : "Ğ" U011E # LATIN CAPITAL LETTER G WITH BREVE
+<Multi_key> <G> <u> : "Ğ" U011E # LATIN CAPITAL LETTER G WITH BREVE
<Multi_key> <b> <G> : "Ğ" U011E # LATIN CAPITAL LETTER G WITH BREVE
<Multi_key> <breve> <G> : "Ğ" U011E # LATIN CAPITAL LETTER G WITH BREVE
<Multi_key> <G> <breve> : "Ğ" U011E # LATIN CAPITAL LETTER G WITH BREVE
<Multi_key> <G> <parenleft> : "Ğ" U011E # LATIN CAPITAL LETTER G WITH BREVE
<dead_breve> <g> : "ğ" U011F # LATIN SMALL LETTER G WITH BREVE
<Multi_key> <U> <g> : "ğ" U011F # LATIN SMALL LETTER G WITH BREVE
+<Multi_key> <u> <g> : "ğ" U011F # LATIN SMALL LETTER G WITH BREVE
<Multi_key> <g> <U> : "ğ" U011F # LATIN SMALL LETTER G WITH BREVE
+<Multi_key> <g> <u> : "ğ" U011F # LATIN SMALL LETTER G WITH BREVE
<Multi_key> <b> <g> : "ğ" U011F # LATIN SMALL LETTER G WITH BREVE
<Multi_key> <breve> <g> : "ğ" U011F # LATIN SMALL LETTER G WITH BREVE
<Multi_key> <g> <breve> : "ğ" U011F # LATIN SMALL LETTER G WITH BREVE
@@ -1016,9 +1022,11 @@
<Multi_key> <i> <minus> : "ī" U012B # LATIN SMALL LETTER I WITH MACRON
<dead_breve> <I> : "Ĭ" U012C # LATIN CAPITAL LETTER I WITH BREVE
<Multi_key> <U> <I> : "Ĭ" U012C # LATIN CAPITAL LETTER I WITH BREVE
+<Multi_key> <u> <I> : "Ĭ" U012C # LATIN CAPITAL LETTER I WITH BREVE
<Multi_key> <b> <I> : "Ĭ" U012C # LATIN CAPITAL LETTER I WITH BREVE
<dead_breve> <i> : "ĭ" U012D # LATIN SMALL LETTER I WITH BREVE
<Multi_key> <U> <i> : "ĭ" U012D # LATIN SMALL LETTER I WITH BREVE
+<Multi_key> <u> <i> : "ĭ" U012D # LATIN SMALL LETTER I WITH BREVE
<Multi_key> <b> <i> : "ĭ" U012D # LATIN SMALL LETTER I WITH BREVE
<dead_ogonek> <I> : "Į" U012E # LATIN CAPITAL LETTER I WITH OGONEK
<Multi_key> <semicolon> <I> : "Į" U012E # LATIN CAPITAL LETTER I WITH OGONEK
@@ -1123,9 +1131,11 @@
<Multi_key> <o> <minus> : "ō" U014D # LATIN SMALL LETTER O WITH MACRON
<dead_breve> <O> : "Ŏ" U014E # LATIN CAPITAL LETTER O WITH BREVE
<Multi_key> <U> <O> : "Ŏ" U014E # LATIN CAPITAL LETTER O WITH BREVE
+<Multi_key> <u> <O> : "Ŏ" U014E # LATIN CAPITAL LETTER O WITH BREVE
<Multi_key> <b> <O> : "Ŏ" U014E # LATIN CAPITAL LETTER O WITH BREVE
<dead_breve> <o> : "ŏ" U014F # LATIN SMALL LETTER O WITH BREVE
<Multi_key> <U> <o> : "ŏ" U014F # LATIN SMALL LETTER O WITH BREVE
+<Multi_key> <u> <o> : "ŏ" U014F # LATIN SMALL LETTER O WITH BREVE
<Multi_key> <b> <o> : "ŏ" U014F # LATIN SMALL LETTER O WITH BREVE
<dead_doubleacute> <O> : "Ő" U0150 # LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
<Multi_key> <equal> <O> : "Ő" U0150 # LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
@@ -6019,8 +6029,7 @@
<Multi_key> <minus> <U2191> : "⍏" U234f # - ↑ APL FUNCTIONAL SYMBOL UPWARDS VANE
<Multi_key> <U2191> <U2395> : "⍐" U2350 # ↑ ⎕ APL FUNCTIONAL SYMBOL QUAD UPWARDS ARROW
<Multi_key> <U2395> <U2191> : "⍐" U2350 # ⎕ ↑ APL FUNCTIONAL SYMBOL QUAD UPWARDS ARROW
-XCOMM I cannot get anything to work with <macron>. Given that no extant APLs use ⍑ I will just leave the lines
-XCOMM in place.
+XCOMM The next two somehow don't work. However, no extant APL uses "⍑".
<Multi_key> <macron> <U22a4> : "⍑" U2351 # ¯ ⊤ APL FUNCTIONAL SYMBOL UP TACK OVERBAR
<Multi_key> <U22a4> <macron> : "⍑" U2351 # ⊤ ¯ APL FUNCTIONAL SYMBOL UP TACK OVERBAR
<Multi_key> <U2207> <bar> : "⍒" U2352 # ∇ | APL FUNCTIONAL SYMBOL DEL STILE
@@ -6035,10 +6044,7 @@
<Multi_key> <minus> <U2193> : "⍖" U2356 # - ↓ APL FUNCTIONAL SYMBOL DOWNWARDS VANE
<Multi_key> <U2193> <U2395> : "⍗" U2357 # ↓ ⎕ APL FUNCTIONAL SYMBOL QUAD DOWNWARDS ARROW
<Multi_key> <U2395> <U2193> : "⍗" U2357 # ⎕ ↓ APL FUNCTIONAL SYMBOL QUAD DOWNWARDS ARROW
-XCOMM This line clashes with the <apostrophe> <underscore> <E> (and similar) that appear to be there to provide
-XCOMM a work around for the problems with <macron>. Or to cope with keyboards that do not have <macron> (more likely).
-XCOMM All APL keyboards have <macron>, it is used as the -ve sign for numbers.
-XCOMM I do not know of an extant APL using ⍘
+XCOMM The <apostrophe> <underscore> is used elsewhere. However, no extant APL uses "⍘".
<Multi_key> <underscore> <apostrophe> : "⍘" U2358 # _ ' APL FUNCTIONAL SYMBOL QUOTE UNDERBAR
<Multi_key> <U2206> <underscore> : "⍙" U2359 # ∆ _ APL FUNCTIONAL SYMBOL DELTA UNDERBAR
<Multi_key> <underscore> <U2206> : "⍙" U2359 # _ ∆ APL FUNCTIONAL SYMBOL DELTA UNDERBAR
@@ -6079,10 +6085,7 @@
<Multi_key> <asciitilde> <0> : "⍬" U236c # ~ 0 APL FUNCTIONAL SYMBOL ZILDE
<Multi_key> <bar> <asciitilde> : "⍭" U236d # | ~ APL FUNCTIONAL SYMBOL STILE TILDE
<Multi_key> <asciitilde> <bar> : "⍭" U236d # ~ | APL FUNCTIONAL SYMBOL STILE TILDE
-XCOMM This line does not work. It clashes with
-XCOMM <underscore> <semicolon> <O> for Ǭ and
-XCOMM <underscore> <semicolon> <o> for ǭ.
-XCOMM Given that no extant APLs use ⍮ I will just leave the line in place.
+XCOMM The <underscore> <semicolon> is used elsewhere. However, no extant APL uses "⍮".
<Multi_key> <semicolon> <underscore> : "⍮" U236e # ; _ APL FUNCTIONAL SYMBOL SEMICOLON UNDERBAR
<Multi_key> <U2260> <U2395> : "⍯" U236f # ≠ ⎕ APL FUNCTIONAL SYMBOL QUAD NOT EQUAL
<Multi_key> <U2395> <U2260> : "⍯" U236f # ⎕ ≠ APL FUNCTIONAL SYMBOL QUAD NOT EQUAL
diff -r cbf86eb954e1 -r e2fdd319e8bc external/mit/libX11/dist/src/Font.c
--- a/external/mit/libX11/dist/src/Font.c Wed May 19 08:19:10 2021 +0000
+++ b/external/mit/libX11/dist/src/Font.c Wed May 19 08:20:08 2021 +0000
@@ -102,6 +102,8 @@
XF86BigfontCodes *extcodes = _XF86BigfontCodes(dpy);
#endif
+ if (strlen(name) >= USHRT_MAX)
+ return NULL;
if (_XF86LoadQueryLocaleFont(dpy, name, &font_result, (Font *)0))
return font_result;
LockDisplay(dpy);
@@ -663,7 +665,7 @@
if (!name)
return 0;
l = (int) strlen(name);
- if (l < 2 || name[l - 1] != '*' || name[l - 2] != '-')
+ if (l < 2 || name[l - 1] != '*' || name[l - 2] != '-' || l >= USHRT_MAX)
return 0;
charset = NULL;
/* next three lines stolen from _XkbGetCharset() */
diff -r cbf86eb954e1 -r e2fdd319e8bc external/mit/libX11/dist/src/FontNames.c
--- a/external/mit/libX11/dist/src/FontNames.c Wed May 19 08:19:10 2021 +0000
+++ b/external/mit/libX11/dist/src/FontNames.c Wed May 19 08:20:08 2021 +0000
@@ -51,6 +51,9 @@
register xListFontsReq *req;
unsigned long rlen = 0;
+ if (strlen(pattern) >= USHRT_MAX)
+ return NULL;
+
LockDisplay(dpy);
GetReq(ListFonts, req);
req->maxNames = maxNames;
Home |
Main Index |
Thread Index |
Old Index