GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fs.mkdtemp should return a Buffer when prefix argument is a Buffer · Issue #58795 · nodejs/node

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

New issue
Copy link
New issue
Copy link
Closed
#64397
Closed
fs.mkdtemp should return a Buffer when prefix argument is a Buffer#58795
#64397
Copy link
Labels
fsIssues and PRs related to file-system APIs and the fs module.

Description

@bakkot
bakkot
opened on Jun 22, 2025
Issue body actions

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).

Reacted by Ethan Arrowood

Activity

  1. VoltrexKeyva
    added
    fsIssues and PRs related to file-system APIs and the fs module.
    on Jun 29, 2025
  2. github-actions commented on Apr 19, 2026

    @github-actions
    github-actionsBot
    on Apr 19, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue has been marked as stale due to 210 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  3. github-actions
    added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Apr 19, 2026
  4. bakkot commented on Apr 20, 2026

    @bakkot
    bakkot
    on Apr 20, 2026
    ContributorAuthor
    More actions

    Still relevant.

  5. github-actions
    removed
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Apr 21, 2026
  6. github-actions commented on Jul 20, 2026

    @github-actions
    github-actionsBot
    on Jul 20, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue has been marked as stale due to 90 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  7. github-actions
    added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Jul 20, 2026
  8. bakkot commented on Jul 20, 2026

    @bakkot
    bakkot
    on Jul 20, 2026
    ContributorAuthor
    More actions

    Keep open.

  9. github-actions
    removed
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Jul 21, 2026
  10. nodejs-github-bot
    closed this as completedin #64397on Sep 6, 2026
  11. nodejs-github-bot
    added a commit that references this issue on Sep 6, 2026

    fs: return Buffer from mkdtemp when prefix is a Buffer

    1f53d7e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to file-system APIs and the fs module.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.