1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/builder/dockerfile/parser
Yong Tang 678c80f925 Skip UTF-8 BOM bytes from Dockerfile if exists
This fix tries to address issues in #23221 where Dockerfile
may consists of UTF-8 BOM. This likely happens when Notepad
tries to save a file as UTF-8 in Windows.

This fix skips the UTF-8 BOM bytes from the beginning of the
Dockerfile if exists.

Additional tests has been added to cover the changes in this
fix.

This fix fixes #23221.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-06-03 06:16:50 -07:00
..
dumper Fix dumper program to use proper import 2015-10-26 13:10:01 -07:00
testfile-line Support platform file paths through escape 2016-05-20 20:29:59 -07:00
testfiles Add support for user-defined healthchecks 2016-06-02 23:58:34 +02:00
testfiles-negative
json_test.go
line_parsers.go Add support for user-defined healthchecks 2016-06-02 23:58:34 +02:00
parser.go Skip UTF-8 BOM bytes from Dockerfile if exists 2016-06-03 06:16:50 -07:00
parser_test.go Support platform file paths through escape 2016-05-20 20:29:59 -07:00
utils.go Fix some typos in comments and strings 2016-02-22 20:27:15 +01:00