fsfe / reuse-tool

reuse is a tool for compliance with the REUSE recommendations.
https://reuse.software
376 stars 144 forks source link

parsing backslashes in dep5 as escape sequences #970

Closed bjk7119 closed 3 months ago

bjk7119 commented 3 months ago
Unexpected error occurred while parsing 'source/AV_TH95/Cradle_FW/tool/t32/jtag_mgr_toolbar_dialogview.cmm'
debian.copyright.MachineReadableFormatError: invalid escape sequence: \3
Unexpected error occurred while parsing 'source/AV_TH95/Cradle_FW/tool/t32/encrypt/1_2_genencryptor.pl'
debian.copyright.MachineReadableFormatError: invalid escape sequence: \3
Unexpected error occurred while parsing 'source/AV_TH95/Cradle_FW/tool/t32/encrypt/1__preprocessor.pl'
debian.copyright.MachineReadableFormatError: invalid escape sequence: \3
Unexpected error occurred while parsing 'source/AV_TH95/Cradle_FW/tool/t32/encrypt/1_1_genpcmm.pl'
debian.copyright.MachineReadableFormatError: invalid escape sequence: \3
Unexpected error occurred while parsing 'source/AV_TH95/Cradle_FW/tool/t32/encrypt/2__encryptor.cmm'
debian.copyright.MachineReadableFormatError: invalid escape sequence: \3

I worked with reuse-tool to check license and copyright, but some error were occurred. It seems to recognize backslashes as an escape sequences. The error was disappeared when I exchanged \3 character to \\3.

The OS is different, but there are similar issues, so I'm inquiring.

carmenbianca commented 3 months ago

Closing notabug. This is inherent to DEP5 (and its library), and is a feature instead of a bug.

Thanks for reporting the issue.