Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotenv: fix parse error on files with UTF-8 BOM #301

Merged
merged 1 commit into from Sep 6, 2022

Commits on Sep 2, 2022

  1. dotenv: fix parse error on files with UTF-8 BOM

    Some Windows editors tend to add UTF-8 BOM markers to files,
    which breaks parsing of `.env` files.
    
    Now, when the file is read, if it starts with a UTF-8 BOM,
    we'll skip it. (`.env` files are always processed as UTF-8.)
    
    See docker/compose#9799.
    
    Signed-off-by: Milas Bowman <milas.bowman@docker.com>
    milas committed Sep 2, 2022
    Copy the full SHA
    f4d0f7d View commit details
    Browse the repository at this point in the history