View Issue Details

IDProjectCategoryView StatusLast Update
0000270fileGeneralpublic2021-06-30 10:09
ReporterContronThePanda Assigned Tochristos  
Status resolvedResolutionfixed 
Product Version5.40 
Fixed in Version5.41 
Summary0000270: When printing with %c from magic file, some characters are still escaped as \ooo in output even with -r option
DescriptionBasically 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 ReproduceI'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`.



2021-06-08 03:41


bell-file (2 bytes)   

bell-file (2 bytes)   
bell-magic (15 bytes)   
0 string \a %s
bell-magic (15 bytes)   


2021-06-30 10:09

manager   ~0003615

Fixed, thanks!

Issue History

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