[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65148] error in print() with non-ASCII charac
From: |
INVALID.NOREPLY |
Subject: |
[Octave-bug-tracker] [bug #65148] error in print() with non-ASCII character in path |
Date: |
Wed, 10 Jan 2024 11:13:27 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?65148>
Summary: error in print() with non-ASCII character in path
Group: GNU Octave
Submitter: mspo
Submitted: Wed 10 Jan 2024 04:13:26 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 8.4.0
Discussion Lock: Any
Operating System: Microsoft Windows
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 10 Jan 2024 04:13:26 PM UTC By: Anonymous
I've stumbled across another issue if there is a non-ASCII in a directory
name. The print() command for saving a figure doesn't work then.
Assuming one has a directory with such a character, e.g., "C:\Täst", it can
be reproduced via:
% make some plot
imagesc(magic(10))
print('C:\Täst\test.png')
The output I get is:
error: Magick++ exception: Magick: Unable to open file (C:\Täst\test.png)
reported by magick/blob.c:3119 (OpenBlob)
error: called from
__imwrite__ at line 221 column 3
imwrite at line 125 column 5
print at line 782 column 13
testscript at line 1 column 1
If I use a directory without such a non-ASCII character, but the file name
contains one, e.g. "C:\Test\täst.png", there is no error thrown but the file
name is screwed up: "täst.png".
# My system
- OS: **Windows 10 pro (version 22H2)**
- Octave version: **Version 8.4.0**
- Installation method: from https://www.octave.org/download.html**
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65148>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65148] error in print() with non-ASCII character in path,
INVALID.NOREPLY <=