bugGNU Octave - Bugs: bug #65148, error in print() with non-ASCII...

 
 

bug #65148: error in print() with non-ASCII character in path

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:  Open/Closed:  * Open
Release:  * 8.4.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 10 Jan 2024 04:37:28 PM UTC, comment #1: 

Ah, I forgot about bug #64820. The dev version posted there actually fixes this problem as well. Will this ship with Octave 9?

mspo
Wed 10 Jan 2024 04:13:26 PM UTC, original submission:  

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**

mspo

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mspo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code