From: Florian Haftmann <florian.haftmann@informatik.tu-muenchen.de>
Hi,
paths in Isabelle/ML, as observed in Isabelle2018, may contain ASCII NUL
characters.
ML_val ‹Path.basic (chr 0)›
That is not valid in POSIX. I'm uncertain whether this issue is critical.
Cheers,
Florian
signature.asc
From: Makarius <makarius@sketis.net>
Did this show up in a practical application?
Strings in Isabelle/ML and Isabelle/Scala may contain ASCII NUL, but the
C/C++ world out there usually excludes that.
The ultimate interpretation of Path.T is up to the underlying
file-system: Path.T cannot protect against arbitrary non-sense there.
E.g. I've occasionally seen corner cases with national "code pages" and
arbitrary Unicode file names. It is normal and to be expected that file
names are not 100% reliable.
Makarius
Last updated: Nov 21 2024 at 12:39 UTC