Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: get_default_filename removes '0' from file name instead of '\0' from window title #29779

Closed
Milestone
@htalaco

Description

@htalaco

Bug summary

removed_chars = r'<>:"/|?\0 ' in get_default_filename has r before string so escape char '' is ignored in the string, so it just replace regular zero character '0' with '_'
just replace removed_chars = r'<>:"/|?
\0 ' with removed_chars = '<>:"/\|?*\0 '

removed_chars=r'<>:"/\|?*\0 '

Code for reproduction

# create a plot and set title to sth with 0 in itfig.canvas.set_window_title('120')# then click on save button

Actual outcome

It shows save dialog with 12_.png file name

Expected outcome

It should show save dialog with 120.png file name

Additional information

No response

Operating system

No response

Matplotlib Version

All

Matplotlib Backend

All

Python version

All

Jupyter version

All

Installation

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp