View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000270 | file | General | public | 2021-06-08 03:41 | 2021-06-30 10:09 |
Reporter | ContronThePanda | Assigned To | christos | ||
Priority | low | Severity | trivial | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 5.40 | ||||
Fixed in Version | 5.41 | ||||
Summary | 0000270: When printing with %c from magic file, some characters are still escaped as \ooo in output even with -r option | ||||
Description | Basically exactly what the title says, I came across this while trying to see if I could use a custom magic file to print a terminal bell. However, even if I pass the -r flag, file still escapes the terminal bell as \007 as long as I print it using %s. It's worth noting that it actually prints the bell character when I use the %c pattern. This only applies to %s, for some reason. | ||||
Steps To Reproduce | I've attached both the custom magic file and a file containing a bell character to test it on. You can reproduce this by running `file -rm bell-magic bell-file`. | ||||
Tags | magic | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2021-06-08 03:41 | ContronThePanda | New Issue | |
2021-06-08 03:41 | ContronThePanda | File Added: bell-file | |
2021-06-08 03:41 | ContronThePanda | File Added: bell-magic | |
2021-06-08 03:41 | ContronThePanda | Tag Attached: magic | |
2021-06-30 10:08 | christos | Assigned To | => christos |
2021-06-30 10:08 | christos | Status | new => assigned |
2021-06-30 10:09 | christos | Status | assigned => resolved |
2021-06-30 10:09 | christos | Resolution | open => fixed |
2021-06-30 10:09 | christos | Fixed in Version | => 5.41 |
2021-06-30 10:09 | christos | Note Added: 0003615 |