Skip to content

replace path placeholder even if it's stored in a wide string #4298

@wojdyr

Description

@wojdyr

Prefix placeholder can be stored in binary files as a wide string (wchar_t).
In such a case it's not replaced by conda.
I came across this problem when building wxWidgets that is using internally wide strings: UCS-2 on Windows and UCS-4 on Unix:

007c4f10  2f 00 00 00 6f 00 00 00  70 00 00 00 74 00 00 00  |/...o...p...t...|
007c4f20  2f 00 00 00 63 00 00 00  6f 00 00 00 6e 00 00 00  |/...c...o...n...|
007c4f30  64 00 00 00 61 00 00 00  2f 00 00 00 63 00 00 00  |d...a.../...c...|
007c4f40  6f 00 00 00 6e 00 00 00  64 00 00 00 61 00 00 00  |o...n...d...a...|
007c4f50  2d 00 00 00 62 00 00 00  6c 00 00 00 64 00 00 00  |-...b...l...d...|
007c4f60  2f 00 00 00 77 00 00 00  78 00 00 00 77 00 00 00  |/...w...x...w...|
007c4f70  69 00 00 00 64 00 00 00  67 00 00 00 65 00 00 00  |i...d...g...e...|

Perhaps conda could try to replace the placeholder in any of the popular encodings (UTF8, UTF16, UTF32)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked[bot] locked due to inactivitysource::communitycatch-all for issues filed by community membersstale::recovered[bot] recovered after being marked as staletype::featurerequest for a new feature or capability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions