summaryrefslogtreecommitdiff
path: root/src/StringEscape.c
Commit message (Collapse)AuthorAgeFilesLines
* msgfmt: escape '\a' as well as other charactersxhe2018-06-181-0/+3
| | | | | Failed to compile procps pofiles due to msgfmt did not handle '\a' at all. Programs stepped in to abort directly.
* msgfmt: escape '\b' as well as other charactersxhe2017-11-081-0/+3
| | | | | I failed to compile audacity pofiles due to msgfmt did not handle '\b' at all. Programs stepped in to abort directly.
* fix assertion error on huge string found in gnumericv0.0.2rofl0r2012-12-251-0/+111
the culprit is: gnumeric-1.10.17/po-functions/dz.po basically the code was wrongly checking for the end of the convert buffer, instead of the line buffer. this is no problem per se because the line buffer gets reset more often, but when the convertbuffer is bigger (like after this change) it wouldnt work correctly. i put the convert_buf functions into a separate translation unit and renamed them to escape and unescape to make it more clear what they're doing. also new: size checks for the escape functions. currently it will silently truncate the strings when the buffer runs out of space. this is sufficient for no-op style, but should be fixed at some point.