Skip to content

fs.mkdtemp should return a Buffer when prefix argument is a Buffer #58795

Open
@bakkot

Description

@bakkot

fs.mkdtemp and friends take a prefix argument, which can be a Buffer encoding a non-UTF8 path. But the APIs always return a string, which can mangle the encoding. So these should return a Buffer in that case. See #58516 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions