NOTICE/LICENSE are UTF-8

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1391809 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-09-29 14:26:53 +00:00
parent 93cc814108
commit 4481cf4d84
1 changed files with 4 additions and 4 deletions

View File

@ -589,14 +589,14 @@ def verifyUnpacked(project, artifact, unpackPath, version, tmpDir):
if project == 'lucene': if project == 'lucene':
if LUCENE_NOTICE is None: if LUCENE_NOTICE is None:
LUCENE_NOTICE = open('%s/NOTICE.txt' % unpackPath).read() LUCENE_NOTICE = open('%s/NOTICE.txt' % unpackPath, encoding='UTF-8').read()
if LUCENE_LICENSE is None: if LUCENE_LICENSE is None:
LUCENE_LICENSE = open('%s/LICENSE.txt' % unpackPath).read() LUCENE_LICENSE = open('%s/LICENSE.txt' % unpackPath, encoding='UTF-8').read()
else: else:
if SOLR_NOTICE is None: if SOLR_NOTICE is None:
SOLR_NOTICE = open('%s/NOTICE.txt' % unpackPath).read() SOLR_NOTICE = open('%s/NOTICE.txt' % unpackPath, encoding='UTF-8').read()
if SOLR_LICENSE is None: if SOLR_LICENSE is None:
SOLR_LICENSE = open('%s/LICENSE.txt' % unpackPath).read() SOLR_LICENSE = open('%s/LICENSE.txt' % unpackPath, encoding='UTF-8').read()
if not isSrc: if not isSrc:
# TODO: we should add verifyModule/verifySubmodule (e.g. analysis) here and recurse through # TODO: we should add verifyModule/verifySubmodule (e.g. analysis) here and recurse through