Commit 2b19be7
committed
add unicode string support
This should at least resolve the issue seen in #77.
I created a 'bad' PDF containing 'wmv' (see `strings test/fixtures/name/application/pdf/wmv.pdf | rg wmv2`).
And with `unicodeBE` and `unicodeLe` support, `wmv` and `wma` files aren't mistakenly identified as `video/x-ms-asf` (it's not wrong since they're using ASF but it's not the quite specific type).
Furthermore it also resolves the `audio2.mp3` case of issue #1251 parent 3d3c5dc commit 2b19be7
File tree
7 files changed
+7
-2
lines changed- lib/marcel
- script
- test/fixtures
- magic
- audio
- mpeg
- x-ms-wma
- x-pn-realaudio
- video/x-ms-wmv
- name/application/pdf
7 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2521 | 2521 | | |
2522 | 2522 | | |
2523 | 2523 | | |
2524 | | - | |
| 2524 | + | |
2525 | 2525 | | |
2526 | 2526 | | |
2527 | 2527 | | |
| |||
2831 | 2831 | | |
2832 | 2832 | | |
2833 | 2833 | | |
2834 | | - | |
| 2834 | + | |
2835 | 2835 | | |
2836 | 2836 | | |
2837 | 2837 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Binary file not shown.
Binary file not shown.
0 commit comments