[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][xorg-team/lib/libfontenc][upstream-unstable] 8 commits: make FontEncDirectory return a const string



Title: GitLab

Timo Aaltonen pushed to branch upstream-unstable at X Strike Force / lib / libfontenc

Commits:

7 changed files:

Changes:

  • Makefile.am
    ... ... @@ -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

  • READMEREADME.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
     

  • autogen.sh
    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

  • configure.ac
    ... ... @@ -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
     
    

  • include/X11/fonts/fontenc.h
    ... ... @@ -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
    

  • src/encparse.c
    ... ... @@ -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);
    

  • src/fontenc.c
    ... ... @@ -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;
    


  • Reply to: