Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gdb/doc: handle (r), (tm) and (c) symbols in man pages
The gdb.1 man page is generated based on the content of the gdb.texi file. The conversion is done using the texi2pod script. However, in downstream GDB, some copyright notices are included in the man pages, and they contain characters not available in ASCII. One of the issue is the use of the "™" symbol which causes build failures: Wide character in printf at /usr/share/perl5/vendor_perl/Pod/Simple.pm line 573. gdb.pod around line 511: Non-ASCII character seen before =encoding in 'Instinctâ„¢,'. Assuming UTF-8 rm -f gdbserver.pod POD document had syntax errors at /usr/bin/pod2man line 69. make[3]: *** [Makefile:604: stabs.pdf] Error 1 make[3]: *** Waiting for unfinished jobs.... Fix this by making sure that texi2pod.pl emits "=encoding utf-8", so pod2man knows the .pod file uses utf-8 characters. For this to work, we also need to pass the "--utf8" flag when calling pod2man. This might cause some issue if one was to build the manpages with a *roff implementation that does not support utf-8 (see pod2man(1)). While doing this, I also noticed that the man page includes "@registeredsymbol{}" which should obviously be replaced by "®". The texi2pod script also already replaces "@copyright{}" with "(c)", but since we now support utf-8, we can use "©" instead. Bug: SWDEV-469207 Change-Id: I18b91150a134bca4896cf22b608bc5685587fb6e (cherry picked from commit b60b39b) (cherry picked from commit a7510bb1f631098f4523108dba55460fff533b33)
- Loading branch information