Summary: | sys-apps/file-5.42 has encoding problem with UTF-8 printing file names | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joerg Schaible <joerg.schaible> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Bernd.Feige, gentoo, josef64, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=859427 | ||
Whiteboard: | Should be fixed in unkeyworded 5.42-r1, needs testing | ||
Package list: | Runtime testing required: | --- |
Description
Joerg Schaible
2022-07-25 22:34:15 UTC
Could you try file-9999? If it's still broken, could you report upstream? Same problem here, I think its a typo in the version. The affected version is sys-apps/file-5.42. seems to be fixed in 9999 I'm guessing the fixes are: - https://github.com/file/file/commit/c80065fe6900be5e794941e29b32440e9969b1c3 - https://github.com/file/file/commit/d471022b2772071877895759f209f2c346757a4c - https://github.com/file/file/commit/441ac2b15508909e82ad467960df4ac0adf9644c Note that I was bitten by this because this bug causes the "ext" file action mechanism of app-misc/mc to fail if there is any wide character in the path. For example, I have a directory "9€_Ticket" below which PDF files are stored, and showing the PDF files with MC (i.e., starting the PDF viewer on the "View" action) silently does not work. Nearly reported an MC bug for this... I can confirm that the MC problem is fixed by sys-apps/file-9999. Sam: I applied the three patches (they don't apply cleanly just because of the FILE_RCSID updates...) but they are not sufficient ("file: mbrtowc.c:104: __mbrtowc: Assertion `__mbsinit (data.__statep)' failed."). (In reply to Bernd Feige from comment #5) > Note that I was bitten by this because this bug causes the "ext" file action > mechanism of app-misc/mc to fail if there is any wide character in the path. > For example, I have a directory "9€_Ticket" below which PDF files are > stored, and showing the PDF files with MC (i.e., starting the PDF viewer on > the "View" action) silently does not work. Nearly reported an MC bug for > this... > I can confirm that the MC problem is fixed by sys-apps/file-9999. > > Sam: I applied the three patches (they don't apply cleanly just because of > the FILE_RCSID updates...) but they are not sufficient ("file: > mbrtowc.c:104: __mbrtowc: Assertion `__mbsinit (data.__statep)' failed."). Thanks. I got it to apply with https://github.com/file/file/commit/7e59d34206d7c962e093d4239e5367a2cd8b7623 thrown in first (and dropping all RCS hunks, of course) but then it just hanged on any input. Bleh. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=253ca90f3f968a03ea6fff8f0011cf411764b22e commit 253ca90f3f968a03ea6fff8f0011cf411764b22e Author: Sam James <sam@gentoo.org> AuthorDate: 2022-08-16 02:28:55 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-08-16 02:29:57 +0000 sys-apps/file: backport unicode handling fixes to 5.42 Temporarily unkeyworded given I had a few issues before I threw in a few extra patches. Want to give it a test run for a day or so myself first before keywording. Bug: https://bugs.gentoo.org/861089 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/file/file-5.42-r1.ebuild | 162 +++++++++ sys-apps/file/files/file-5.42-unicode-fixes.patch | 414 ++++++++++++++++++++++ 2 files changed, 576 insertions(+) Could you guys try out 5.42-r1 (unkeyworded for now) and let me know if it solves your issues, and if it works OK in general? Thanks. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72038d02f171d9e3defd2c054f857869f84e9287 commit 72038d02f171d9e3defd2c054f857869f84e9287 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-08-16 02:34:40 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-08-16 02:34:40 +0000 sys-apps/file: drop 5.42 back to ~arch Issues with handling unicode. Bug: https://bugs.gentoo.org/861089 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/file/file-5.42.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da324cbb488b8a50aaa3e26af5ea0120535eefee commit da324cbb488b8a50aaa3e26af5ea0120535eefee Author: Sam James <sam@gentoo.org> AuthorDate: 2022-08-22 18:04:56 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-08-22 18:05:25 +0000 sys-apps/file: rekeyword 5.42-r1 w/ unicode fixes Closes: https://bugs.gentoo.org/861089 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/file/file-5.42-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Hello Sam, sorry, was on holiday. Works like a charm. Thank you very much Jan (In reply to aleck from comment #11) > Hello Sam, > > sorry, was on holiday. Works like a charm. > > Thank you very much > > Jan No problem at all and big thank you for confirming! |