Ignore:
Timestamp:
Oct 5, 2018, 3:56:31 AM (7 years ago)
Author:
[email protected]
Message:

[GTK] build fails with python 3 if LANG and LC_TYPE are unset
https://bugs.webkit.org/show_bug.cgi?id=190258

Patch by Mike Gorse <[email protected]> on 2018-10-05
Reviewed by Konstantin Tokarev.

  • Scripts/cssmin.py: Set stdout to UTF-8 on python 3.
  • Scripts/generateIntlCanonicalizeLanguage.py: Open files with encoding=UTF-8 on Python 3.
  • yarr/generateYarrCanonicalizeUnicode: Ditto.
  • yarr/generateYarrUnicodePropertyTables.py: Ditto.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/yarr/generateYarrUnicodePropertyTables.py

    r236321 r236870  
    9191def openOrExit(path, mode):
    9292    try:
    93         return open(path, mode)
     93        if sys.version_info.major >= 3:
     94            return open(path, mode, encoding="UTF-8")
     95        else:
     96            return open(path, mode)
    9497    except IOError as e:
    9598        print("I/O error opening {0}, ({1}): {2}".format(path, e.errno, e.strerror))
Note: See TracChangeset for help on using the changeset viewer.