summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2021-06-15 07:36:30 +0200
committercos <cos>2021-06-15 09:17:43 +0200
commit58e84f8fdf8e663b5164783c9bae0c7677567ba0 (patch)
tree2f2911372f17b93c57f892ba01fbb28d0a299ae9
parentfde50cfc7ab67d52172a144cbc4b478c4075c294 (diff)
downloaddotavious-wip/stop_mangling_non-ascii.zip
FIXME: Add comment about char::escape_default()wip/stop_mangling_non-ascii
-rw-r--r--src/attributes/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/attributes/mod.rs b/src/attributes/mod.rs
index 94ade1b..91bdd53 100644
--- a/src/attributes/mod.rs
+++ b/src/attributes/mod.rs
@@ -110,6 +110,9 @@ impl<'a> AttributeText<'a> {
// interpret backslashes; see EscStr above.
'\\' => f(c),
_ => {
+ // FIXME Using char::escape_default() causes: "All other characters are given
+ // hexadecimal Unicode escapes; see escape_unicode." which is not the
+ // encoding expected by The DOT Language.
for c in c.escape_default() {
f(c)
}