vitebonus / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

depswriter.py - files with utf8 bom #625

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a js/foo.js file with a utf-8 bom (ef bb bf). On the first line in 
the file:
goog.provide('foo');
2. closure-library/closure/bin/build/depswriter.py --root_with_prefix="js js/"
3. the .js is missing from the dep output

What is the expected output? What do you see instead?
file is included in dep output

What version of the product are you using? On what operating system?
latest git checkout as of today
Windows 8.1

Workaround:
Option 1:
Remove UTF8 bom
Option 2:
Add a comment in the first line
// extra comment to work around depswriter utf8 bom bug

Original issue reported on code.google.com by mbercht...@gmail.com on 1 Feb 2014 at 8:38