mirror of
https://github.com/openvswitch/ovs
synced 2025-09-01 14:55:18 +00:00
ovs-fields.7: Use a more general approach to groff encodings.
It turns out that, since groff 1.20 around 2009, groff comes with a preprocessor named "preconv" that can fix encoding issues. Use it instead of the existing hack. Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -752,14 +752,6 @@ ovs\-fields \- protocol header fields in OpenFlow and Open vSwitch
|
||||
output = []
|
||||
for oline in s.split("\n"):
|
||||
oline = oline.strip()
|
||||
|
||||
# Life is easier with nroff if we don't try to feed it Unicode.
|
||||
# Fortunately, we only use a few characters outside the ASCII range.
|
||||
oline = oline.replace(u'\u2208', r'\[mo]')
|
||||
oline = oline.replace(u'\u2260', r'\[!=]')
|
||||
oline = oline.replace(u'\u2264', r'\[<=]')
|
||||
oline = oline.replace(u'\u2265', r'\[>=]')
|
||||
oline = oline.replace(u'\u00d7', r'\[mu]')
|
||||
if len(oline):
|
||||
output += [oline]
|
||||
|
||||
|
@@ -545,6 +545,6 @@ lib/ovs-fields.7: $(srcdir)/build-aux/extract-ofp-fields include/openvswitch/met
|
||||
$(AM_V_GEN)PYTHONIOENCODING=utf8 $(run_python) $< \
|
||||
--ovs-version=$(VERSION) ovs-fields \
|
||||
$(srcdir)/include/openvswitch/meta-flow.h \
|
||||
$(srcdir)/lib/meta-flow.xml > $@.tmp
|
||||
$(srcdir)/lib/meta-flow.xml | preconv -e utf-8 > $@.tmp
|
||||
$(AM_V_at)mv $@.tmp $@
|
||||
EXTRA_DIST += lib/meta-flow.xml
|
||||
|
Reference in New Issue
Block a user