This repository was archived by the owner on Nov 11, 2024. It is now read-only.
Commit d59c7c8
committed
More correctly handle the case where plain char is signed
In _FAT_directory_lfnLength, the check 'ch < 0x20' incorrectly catches
any extended UTF-8 bytes if the plain 'char' type is signed:
0x80 < 0x20 ... 0xEF < 0x20
are interpreted as (negative value < 32). The check for 0xF0 and above
also fails to work properly due to 0xF0 being negative as well.1 parent cf268b3 commit d59c7c8
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
0 commit comments