[rb-general] Clarification on BUILD_PATH_PREFIX_MAP and drive letters

Dan Kegel dank at kegel.com
Sat Jun 24 04:29:42 CEST 2017

On Fri, Jun 23, 2017 at 6:53 PM, Dan Kegel <dank at kegel.com> wrote:
> https://reproducible-builds.org/specs/build-path-prefix-map/ says
>   "The : character separates encoded list items from each other."
> This seems to have forgotten about Windows, which uses : for drive
> letters, and typically uses ; for such separators.
> Presumably on Windows, a Ruby implementation would use
> File::PATH_SEPARATOR for this character, and the spec needs a tweak.

I should have written "would be sorely tempted to use File::PATH_SEPARATOR".
The spec is clear that colons get encoded, but it could still use a
for the slow reader showing how Windows paths are mapped.

Related question: the spec is silent about case insensitive filesystems.
How are they to be handled?  Worth mentioning in the spec even
if all you say is "undefined" for now...?

More information about the rb-general mailing list