[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33848: Store references in SBCL-compiled code are "invisible"
From: |
Ludovic Courtès |
Subject: |
bug#33848: Store references in SBCL-compiled code are "invisible" |
Date: |
Thu, 27 Dec 2018 22:54:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Pierre Neidhardt <address@hidden> skribis:
>> Every file in the store is properly scanned for references. It’s just
>> that users cannot create top-level items with a non-ASCII file name.
>
> So if '/gnu/store/...-foo/á' is stored as UTF-8 in a binary, then it will be
> found? Is it because the filesystem encoding is also UTF-8 and Guix scans
> over
> byte arrays?
The reference scanner, currently written in C++, traverses whole
directory trees. Being C++ it treats file names as byte arrays so it
doesn’t matter what the file name encoding is.
Note also that the reference scanner only looks for “xyz…-foo”; what
comes before and after doesn’t matter. So for example if you have
“/gnu/store/xyz…-foo/à”, what’s important is the “xyz…-foo” bit.
This is all happening in libstore/references.cc (which is surprisingly
small) and in (guix build graft) for the grafting part, which Mark wrote
a while back.
HTH,
Ludo’.
- bug#33848: Store references in SBCL-compiled code are "invisible", (continued)
- bug#33848: Store references in SBCL-compiled code are "invisible", Mark H Weaver, 2018/12/24
- bug#33848: Store references in SBCL-compiled code are "invisible", Pierre Neidhardt, 2018/12/24
- bug#33848: Store references in SBCL-compiled code are "invisible", Ludovic Courtès, 2018/12/26
- bug#33848: Store references in SBCL-compiled code are "invisible", Pierre Neidhardt, 2018/12/27
- bug#33848: Store references in SBCL-compiled code are "invisible", Mark H Weaver, 2018/12/27
- bug#33848: Store references in SBCL-compiled code are "invisible", Ludovic Courtès, 2018/12/27
- bug#33848: Store references in SBCL-compiled code are "invisible", Pierre Neidhardt, 2018/12/27
- bug#33848: Store references in SBCL-compiled code are "invisible", Pierre Neidhardt, 2018/12/27
- bug#33848: Store references in SBCL-compiled code are "invisible", Ludovic Courtès, 2018/12/27
- bug#33848: Store references in SBCL-compiled code are "invisible", Pierre Neidhardt, 2018/12/27
- bug#33848: Store references in SBCL-compiled code are "invisible",
Ludovic Courtès <=
- bug#33848: Store references in SBCL-compiled code are "invisible", Pierre Neidhardt, 2018/12/27
- bug#33848: Store references in SBCL-compiled code are "invisible", Ludovic Courtès, 2018/12/27
- bug#33848: Store references in SBCL-compiled code are "invisible", Pierre Neidhardt, 2018/12/28
- bug#33848: Store references in SBCL-compiled code are "invisible", Danny Milosavljevic, 2018/12/27
- bug#33848: Store references in SBCL-compiled code are "invisible", Mark H Weaver, 2018/12/27