Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

Location:
vendor/current/source3/build
Files:
1 added
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/build/charset.py

    r740 r988  
    99    if conf.CHECK_ICONV(define='HAVE_NATIVE_ICONV'):
    1010        default_dos_charset=False
    11         default_display_charset=False
    1211        default_unix_charset=False
    1312
     
    1615            if conf.CHECK_CHARSET_EXISTS(charset, headers='iconv.h'):
    1716                default_dos_charset=charset
    18                 break
    19 
    20         # check for default display charset name
    21         for charset in ['ASCII', '646']:
    22             if conf.CHECK_CHARSET_EXISTS(charset, headers='iconv.h'):
    23                 default_display_charset=charset
    2417                break
    2518
     
    3831        if crossbuild:
    3932            default_dos_charset="CP850"
    40             default_display_charset="ASCII"
    4133            default_unix_charset="UTF-8"
    4234            # TODO: this used to warn about the set charset on cross builds
    4335
     36        if default_dos_charset is False or default_unix_charset is False:
     37        # we found iconv, but it failed to convert anything (e.g. on AIX)
     38            conf.undefine('HAVE_NATIVE_ICONV');
     39            default_dos_charset = "ASCII"
     40            default_unix_charset = "UTF-8"
     41
    4442        conf.DEFINE('DEFAULT_DOS_CHARSET', default_dos_charset, quote=True)
    45         conf.DEFINE('DEFAULT_DISPLAY_CHARSET', default_display_charset, quote=True)
    4643        conf.DEFINE('DEFAULT_UNIX_CHARSET', default_unix_charset, quote=True)
    4744
    4845    else:
    4946        conf.DEFINE('DEFAULT_DOS_CHARSET', "ASCII", quote=True)
    50         conf.DEFINE('DEFAULT_DISPLAY_CHARSET', "ASCII", quote=True)
    5147        conf.DEFINE('DEFAULT_UNIX_CHARSET', "UTF8", quote=True)
    5248
Note: See TracChangeset for help on using the changeset viewer.