bash/quotes-man2html.patch

28 lines
593 B
Diff

boo#1203091
---
support/man2html.c | 12 ++++
1 file changed, 12 insertions(+)
--- support/man2html.c
+++ support/man2html.c 2022-09-12 08:27:06.352648345 +0000
@@ -476,6 +476,18 @@ expand_char(int nr)
charb[0] = nr / 256;
charb[1] = nr % 256;
charb[2] = '\0';
+ if (charb[1] == 'q') {
+ switch (charb[0]) {
+ case 'a':
+ strncpy(charb, "'", 1);
+ charb[1] = '\0';
+ break;
+ case 'd':
+ strncpy(charb, """, 6);
+ charb[6] = '\0';
+ break;
+ }
+ }
if (charb[0] == '<') { /* Fix up <= */
charb[4] = charb[1];
strncpy(charb, "&lt;", 4);