Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was checking SensioLabs Code Analysis report about Drupal, and I saw there is a file with no UTF8 encoding in Drupal code base.
Comment | File | Size | Author |
---|---|---|---|
#1 | encode-copyright-txt-uft8-2382199-1.patch | 638 bytes | corbacho |
2014-11-26-niglp.jpg | 79.69 KB | corbacho |
Comments
Comment #1
corbacho CreditAttribution: corbacho commentedThe patch fixes the encoding.
Comment #2
corbacho CreditAttribution: corbacho commentedAdding link to the report
Comment #3
jhodgdonComment #4
corbacho CreditAttribution: corbacho commentedSafe to mark it RTBC, since it's a minor change?
Comment #5
chx CreditAttribution: chx commentedDid anyone check MAINTAINERS.txt ? Can be in this issue, can be a followup.
Comment #6
corbacho CreditAttribution: corbacho commented@chx good question.
SensioLabs only reported this file.
I don't know exactly how SensioLabs detect them, but I run this command :
find . -type f | xargs -I {} bash -c "iconv -f utf-8 -t utf-16 {} &>/dev/null || echo {}" > utf8_fail
And the only non UTF8 text file I got was COPYRIGHT.TXT
The rest was png images, .ico, .git files and some compressed files.. it's normal that those contain non utf8 characters.
Comment #7
chx CreditAttribution: chx commentedOdd. It seems MAINTAINERS.txt is correct and I can't even find any revision when it was incorrect although I'd have sworn it had this problem. Nevermind. Sorry for the noise.
Comment #8
webchickNice catch.
Committed and pushed to 8.0.x. Thanks!