From: Miodrag Milanovic Date: Fri, 3 Jun 2022 06:38:16 +0000 (+0200) Subject: Fix preventing show crashing with newer graphviz X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d88a5d26b7849e25dceb3854070dd56f9044c7ee;p=yosys.git Fix preventing show crashing with newer graphviz --- diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc index 35aa410e4..43deba47b 100644 --- a/passes/cmds/show.cc +++ b/passes/cmds/show.cc @@ -191,7 +191,12 @@ struct ShowWorker std::string str; for (char ch : id) { - if (ch == '\\' || ch == '"') + if (ch == '\\') { + // new graphviz have bug with escaping '\' + str += "╲"; + continue; + } + if (ch == '"') str += "\\"; str += ch; }