#38771 closed defect (invalid)
file: ERROR: line 5: regexec error 17, (illegal byte sequence)
Reported by: | jielaizhang | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), panayotis@…, cooljeanius (Eric Gallager), mdgriffin@…, andrewbass@… | |
Port: | file |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Hi,
When I run the command
>>file -b -N -L -k -r an_image_fits_file.fits ERROR: line 5: regexec error 17, (illegal byte sequence) >>file --version file-5.12 magic file from /opt/local/share/misc/magic >>port installed | grep file file @5.12_2 (active) p5-file-changenotify @0.190.0_3 (active) p5.12-file-changenotify @0.190.0_3 (active) p5.12-file-listing @6.20.0_2 (active)
I have been recommended to report this problem to macports, reading Ticket Guidelines makes me think I should report it to whoever uploaded the "file" port? I do not know how to find this out- sorry!
Change History (14)
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Description: | modified (diff) |
Keywords: | file removed |
Summary: | file port → file: ERROR: line 5: regexec error 17, (illegal byte sequence) |
comment:2 Changed 12 years ago by jielaizhang
Hi Ryan, thanks for your reply.
This error goes away when I use my /usr/bin/file instead of /opt/local/bin/file
I will tell this someone who developed the "file" program too!
comment:3 Changed 12 years ago by jmroot (Joshua Root)
I take it you're on 10.8? The regex library now errors out when the string/file contents are not valid in the encoding specified by the current locale. However the current version of the file port is 5.14, so you should really upgrade and confirm that the problem still exists before going any further.
comment:4 Changed 12 years ago by jielaizhang
Yep, 10.8.3
I just updated to file port 5.14
>>port installed | grep file file @5.12_2 file @5.14_0 (active) p5-file-changenotify @0.190.0_3 (active) p5.12-file-changenotify @0.190.0_3 (active) p5.12-file-listing @6.20.0_2 (active)
and that solved the problem. Thanks!
comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:6 follow-ups: 7 9 Changed 11 years ago by panayotis@…
Resolution: | invalid |
---|---|
Status: | closed → reopened |
I still have the same problem, with OSX 10.9 and file 5.15
comment:7 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | panayotis@… added |
---|---|
Resolution: | → invalid |
Status: | reopened → closed |
comment:9 Changed 11 years ago by wteltel@…
Replying to panayotis@…:
I still have the same problem, with OSX 10.9 and file 5.15
Adding
export LC_CTYPE=C export LANG=C
to ~/.profile solve the problem
comment:10 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Setting the locale to C
is what the developer says he did to fix the problem; this fix will presumably be part of file 5.17, whenever that's released.
comment:11 Changed 11 years ago by mdgriffin@…
I just installed file 5.17, and the problem remains unresolved. Setting locale and language to C continues to be effective as a workaround.
comment:12 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | mdgriffin@… added |
---|
Please relay your concerns to the developer of file so that he can fix the problem.
comment:14 Changed 11 years ago by andrewbass@…
Should be either http://bugs.gw.com/view.php?id=281 or http://bugs.gw.com/view.php?id=292.
I also get that kind of error on some files. The "file" port has no maintainer, so there is nobody within the MacPorts community who has claimed responsibility for this software. Even if there were, I doubt the problem is MacPorts-specific, so you should report the bug to the people who develop the "file" program; see their homepage at http://www.darwinsys.com/file/ for how to do that.