Thanks to visit codestin.com
Credit goes to github.com

Skip to content

charset-normalizer fails to detect encoding of UTF-8 bytestring in some cases #1244

@nijel

Description

@nijel

Since upgrading to 6.0, our repo fails to validate in some environments.

  • It validates locally for me.
  • It validates in GitHub Actions.
  • It usually doesn't validate on pre-commit.ci.

When it fails, it complains about two files:

# MISSING COPYRIGHT AND LICENSING INFORMATION

The following files have no copyright and licensing information:
* docs/locales/el/LC_MESSAGES/docs.po
* weblate/locale/el/LC_MESSAGES/djangojs.po

Files are here:

As you can see, both have copyright and license information on the top (this is consistent with other files). For example, it does not complain about https://github.com/WeblateOrg/weblate/blob/0337a38a369bacb8f3ba5270882042105760b4d3/weblate/locale/el/LC_MESSAGES/django.po#L1

Do you have any idea what might be wrong?

I tried to add --debug, but pre-commit.ci truncates output, so that is not useful either: https://results.pre-commit.ci/run/github/3559019/1759819468.SqwFUhG8SfKOl3blnVOjBg

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority/highregressionRegression, something worked before, but not any more

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions