aboutcode-org / aboutcode-org/typecode

File type of *.mo file contains content

Đang mở
#43 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
10
Fork
15
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I am using `scancode.api.get_file_info(path)` to retrieve the file type of files with `typecode-libmagic` installed. This leads to strange results with `*.mo` files:

```
GNU message catalog (little endian), revision 0.0, 349 messages, Project-Id-Version: django '%(datetime)s non se puido interpretar na zona hora horaria %(current_timezone)s; pode ser ambiguo ou non existir.'
```

```
GNU message catalog (little endian), revision 0.0, 349 messages, Project-Id-Version: django '%(datetime)s \343\201\257 %(current_timezone)s \343\201\256\343\202\277\343\202\244\343\203\240\343\202\276\343\203\274\343\203\263\343\201\247\343\201\257\350\247\243\351\207\210\343\201\247\343\201\215\343\201\276\343\201\233\343\202\223\343\201\247\343\201\227\343\201\237\343\200\202\343\201\235\343\202\214\343\201\257\346\233\226\346\230\247\343\201\247\343\201\202\343\202\213\343\201\213\343\200'
```

It seems like some actual file content is leaking into the information here.

Offending source files:

* https://github.com/django/django/blob/5.2/django/conf/locale/gl/LC_MESSAGES/django.mo
* https://github.com/django/django/blob/5.2/django/conf/locale/ja/LC_MESSAGES/django.mo

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.