Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
import from upstream tarball icu4c-52_1-src.tgz
- Loading branch information
Islam Amer
committed
Mar 23, 2014
1 parent
19aef60
commit d235af0
Showing
3,211 changed files
with
1,050,023 additions
and
149,887 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/python | ||
|
||
# Copyright (C) 2011 IBM Corporation and Others. All Rights Reserved. | ||
# | ||
# run in icu/ | ||
# will create file icu/as_is/bomlist.txt | ||
# | ||
# Usage: | ||
# ( python as_is/bomlist.py > as_is/bomlist.txt ) || rm -f as_is/bomlist.txt | ||
|
||
import os | ||
import codecs | ||
|
||
tree = os.walk(".") | ||
|
||
nots=0 | ||
notutf8=0 | ||
noprops=0 | ||
utf8=0 | ||
fixed=0 | ||
tfiles=0 | ||
bom=codecs.BOM_UTF8 | ||
|
||
|
||
for ent in tree: | ||
(path,dirs,files) = ent | ||
if(path.find("/.svn") != -1): | ||
continue | ||
for file in files: | ||
tfiles=tfiles+1 | ||
fp = (path + "/" + file) | ||
if not os.path.isfile(fp): | ||
continue | ||
f = open(fp, 'rb') | ||
bytes=f.read(3) | ||
if bytes and (bytes == bom): | ||
print 'icu/'+fp[2::] | ||
f.close() |
Oops, something went wrong.