Skip to content

Commit

Permalink
waf: improve iconv checks
Browse files Browse the repository at this point in the history
there are broken iconv implementations around (e.g. on AIX) that you
can compile against but that refuse any mapping requests

make sure we do the same as the autoconf-based build did and
fall back to our own code

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10308

Signed-off-by: Christian Ambach <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
der-ambi committed Jan 3, 2014
1 parent c20753c commit 15b2d1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source3/build/charset.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ def CHECK_SAMBA3_CHARSET(conf, crossbuild=False):
default_unix_charset="UTF-8"
# TODO: this used to warn about the set charset on cross builds

if default_dos_charset is False or default_unix_charset is False:
# we found iconv, but it failed to convert anything (e.g. on AIX)
conf.undefine('HAVE_NATIVE_ICONV');
default_dos_charset = "ASCII"
default_unix_charset = "UTF-8"

conf.DEFINE('DEFAULT_DOS_CHARSET', default_dos_charset, quote=True)
conf.DEFINE('DEFAULT_UNIX_CHARSET', default_unix_charset, quote=True)

Expand Down

0 comments on commit 15b2d1a

Please sign in to comment.