Skip to content

Fix error when script is in a folder containing special characters #24

Open
@martinarielhartmann

Description

@martinarielhartmann

Thanks for developing and maintaining this amazing mode, I use it all the time. But I have an issue: my Matlab scripts often need to be in a folder containing umlauts in its name, and so I am unable to run blocks of code without having to paste into the command window. I was wondering, would it be possible for you to fix this issue? Example:

>> emacsrunregion('/Users/johndoe/umlut/script.m',1,13)
Error using emacsrunregion (line 26)
You must save your region into a file accessible by MATLAB process.
 
>> pwd

ans =

    '/Users/johndoe/umläut'

On a related note, I cannot cd to that folder from the command window (but I can if I run the line from a script):


>> cd('/Users/jonhdoe/umlaut')
Error using cd
Unable to change current folder to '/Users/jonhdoe/umlaut' (Name is nonexistent or not a folder).

Tested in R2024a, Emacs 31.

Thanks for your help!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions