Timo Aaltonen pushed to branch upstream-unstable at X Strike Force / lib / libfontenc
Commits:
-
8bbc9af3
by Julien Cristau at 2015-09-24T19:28:18+02:00
-
38aac013
by Peter Hutterer at 2017-01-26T11:59:22+10:00
-
cc7e0f55
by Emil Velikov at 2017-01-26T11:59:22+10:00
-
8d30ca25
by Mihail Konev at 2017-01-26T13:52:49+10:00
-
b28c2d11
by Alan Coopersmith at 2018-11-11T13:59:55-08:00
-
b12b2d71
by Alan Coopersmith at 2018-11-19T23:01:09-08:00
-
d7f66184
by Alan Coopersmith at 2018-12-07T19:29:22-08:00
-
2baea139
by Alan Coopersmith at 2019-02-19T17:31:57-08:00
7 changed files:
- Makefile.am
- README → README.md
- autogen.sh
- configure.ac
- include/X11/fonts/fontenc.h
- src/encparse.c
- src/fontenc.c
Changes:
| ... | ... | @@ -40,3 +40,5 @@ if LINT |
| 40 | 40 |
lint:
|
| 41 | 41 |
(cd src && $(MAKE) $(MFLAGS) lint)
|
| 42 | 42 |
endif LINT
|
| 43 |
+ |
|
| 44 |
+EXTRA_DIST = README.md
|
| 1 | 1 |
libfontenc - font encoding library
|
| 2 |
+----------------------------------
|
|
| 2 | 3 |
|
| 3 | 4 |
All questions regarding this software should be directed at the
|
| 4 | 5 |
Xorg mailing list:
|
| 5 | 6 |
|
| 6 |
- http://lists.freedesktop.org/mailman/listinfo/xorg
|
|
| 7 |
- |
|
| 8 |
-Please submit bug reports to the Xorg bugzilla:
|
|
| 9 |
- |
|
| 10 |
- https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
|
|
| 7 |
+ https://lists.x.org/mailman/listinfo/xorg
|
|
| 11 | 8 |
|
| 12 | 9 |
The master development code repository can be found at:
|
| 13 | 10 |
|
| 14 |
- git://anongit.freedesktop.org/git/xorg/lib/libfontenc
|
|
| 11 |
+ https://gitlab.freedesktop.org/xorg/lib/libfontenc
|
|
| 15 | 12 |
|
| 16 |
- http://cgit.freedesktop.org/xorg/lib/libfontenc
|
|
| 13 |
+Please submit bug reports and requests to merge patches there.
|
|
| 17 | 14 |
|
| 18 | 15 |
For patch submission instructions, see:
|
| 19 | 16 |
|
| 20 |
- http://www.x.org/wiki/Development/Documentation/SubmittingPatches
|
|
| 21 |
- |
|
| 22 |
-For more information on the git code manager, see:
|
|
| 23 |
- |
|
| 24 |
- http://wiki.x.org/wiki/GitPage
|
|
| 17 |
+ https://www.x.org/wiki/Development/Documentation/SubmittingPatches
|
|
| 25 | 18 |
|
| 1 | 1 |
#! /bin/sh
|
| 2 | 2 |
|
| 3 |
-srcdir=`dirname $0`
|
|
| 3 |
+srcdir=`dirname "$0"`
|
|
| 4 | 4 |
test -z "$srcdir" && srcdir=.
|
| 5 | 5 |
|
| 6 | 6 |
ORIGDIR=`pwd`
|
| 7 |
-cd $srcdir
|
|
| 7 |
+cd "$srcdir"
|
|
| 8 | 8 |
|
| 9 | 9 |
autoreconf -v --install || exit 1
|
| 10 |
-cd $ORIGDIR || exit $?
|
|
| 10 |
+cd "$ORIGDIR" || exit $?
|
|
| 11 |
+ |
|
| 12 |
+git config --local --get format.subjectPrefix >/dev/null 2>&1 ||
|
|
| 13 |
+ git config --local format.subjectPrefix "PATCH libfontenc"
|
|
| 11 | 14 |
|
| 12 | 15 |
if test -z "$NOCONFIGURE"; then
|
| 13 |
- $srcdir/configure "$@"
|
|
| 16 |
+ exec "$srcdir"/configure "$@"
|
|
| 14 | 17 |
fi
|
| ... | ... | @@ -21,8 +21,8 @@ |
| 21 | 21 |
|
| 22 | 22 |
# Initialize Autoconf
|
| 23 | 23 |
AC_PREREQ([2.60])
|
| 24 |
-AC_INIT([libfontenc], [1.1.3],
|
|
| 25 |
- [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libfontenc])
|
|
| 24 |
+AC_INIT([libfontenc], [1.1.4],
|
|
| 25 |
+ [https://gitlab.freedesktop.org/xorg/lib/libfontenc/issues], [libfontenc])
|
|
| 26 | 26 |
AC_CONFIG_SRCDIR([Makefile.am])
|
| 27 | 27 |
AC_CONFIG_HEADERS([config.h])
|
| 28 | 28 |
|
| ... | ... | @@ -109,7 +109,7 @@ char *FontEncName(unsigned, FontMapPtr); |
| 109 | 109 |
|
| 110 | 110 |
/* Return a pointer to the name of the system encodings directory. */
|
| 111 | 111 |
/* This string is static and should not be modified. */
|
| 112 |
-char *FontEncDirectory(void);
|
|
| 112 |
+const char *FontEncDirectory(void);
|
|
| 113 | 113 |
|
| 114 | 114 |
/* Identify an encoding file. If fileName doesn't exist, or is not an
|
| 115 | 115 |
encoding file, return NULL, otherwise returns a NULL-terminated
|
| ... | ... | @@ -827,13 +827,13 @@ parseEncodingFile(FontFilePtr f, int headerOnly) |
| 827 | 827 |
return NULL;
|
| 828 | 828 |
}
|
| 829 | 829 |
|
| 830 |
-char *
|
|
| 830 |
+const char *
|
|
| 831 | 831 |
FontEncDirectory(void)
|
| 832 | 832 |
{
|
| 833 |
- static char *dir = NULL;
|
|
| 833 |
+ static const char *dir = NULL;
|
|
| 834 | 834 |
|
| 835 | 835 |
if (dir == NULL) {
|
| 836 |
- char *c = getenv("FONT_ENCODINGS_DIRECTORY");
|
|
| 836 |
+ const char *c = getenv("FONT_ENCODINGS_DIRECTORY");
|
|
| 837 | 837 |
|
| 838 | 838 |
if (c) {
|
| 839 | 839 |
dir = strdup(c);
|
| ... | ... | @@ -941,7 +941,7 @@ FontEncReallyLoad(const char *charset, const char *fontFileName) |
| 941 | 941 |
{
|
| 942 | 942 |
FontEncPtr encoding;
|
| 943 | 943 |
char dir[MAXFONTFILENAMELEN], dirname[MAXFONTFILENAMELEN];
|
| 944 |
- char *d;
|
|
| 944 |
+ const char *d;
|
|
| 945 | 945 |
|
| 946 | 946 |
if (fontFileName) {
|
| 947 | 947 |
parseFontFileName(fontFileName, dirname, dir);
|
| ... | ... | @@ -274,14 +274,14 @@ iso8859_7_to_unicode(unsigned isocode, void *client_data) |
| 274 | 274 |
isocode == 0xB7 || isocode == 0xBB || isocode == 0xBD)
|
| 275 | 275 |
return isocode;
|
| 276 | 276 |
else if (isocode == 0xA1)
|
| 277 |
- return 0x02BD;
|
|
| 277 |
+ return 0x2018;
|
|
| 278 | 278 |
else if (isocode == 0xA2)
|
| 279 |
- return 0x02BC;
|
|
| 279 |
+ return 0x2019;
|
|
| 280 | 280 |
else if (isocode == 0xAF)
|
| 281 | 281 |
return 0x2015;
|
| 282 | 282 |
else if (isocode == 0xD2) /* unassigned */
|
| 283 | 283 |
return 0;
|
| 284 |
- else if (isocode >= 0xB4)
|
|
| 284 |
+ else if (isocode >= 0xB4 && isocode <= 0xFE)
|
|
| 285 | 285 |
return isocode - 0xA0 + 0x0370;
|
| 286 | 286 |
else
|
| 287 | 287 |
return 0;
|