ietf-tools / author-tools

Author Tools
https://author-tools.ietf.org
BSD 3-Clause "New" or "Revised" License
36 stars 30 forks source link

iddifff: Provide better error messages when there are format issues #466

Open kesara opened 8 months ago

kesara commented 8 months ago

Description

When DOS format text files with (UTF-8 code points) are provided, author tools provide the following error message: TypeError: Node.appendChild: Argument 1 is not an object.

This is caused by awk in rfcdiff:

'usr/bin/awk: towc: multibyte conversion failure on: '�s operating temperature.

 input record number 298, file /tmp/rfcdiff-76592/2/draft-ietf-tvr-use-cases-07.txt
 source line number 2
cmp: EOF on 2/draft-ietf-tvr-use-cases-07.txt after byte 12250

Author Tools should provide a better error message when this occurs.

Code of Conduct