bash/quotes-man2html.patch
Dr. Werner Fink 9ce5cec29a Accepting request 1005780 from home:yecril71pl:branches:Base:System
- add checks
The check in the build section does not check anything because it overrides the test script.

OBS-URL: https://build.opensuse.org/request/show/1005780
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=353
2022-09-27 07:37:07 +00:00

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);