Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Fix error when script is in a folder containing special characters

Open
#24 2 comments 0 reactions 1 assignee View on GitHub

@JohnC32 is already working on this.

Since May 23, 2025.

Assessment

This issue has not been assessed yet.

Description

bug

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!

Dominant language
Emacs Lisp
Stars
27
Forks
5
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • No pull request template
  • Read the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mathworks/Emacs-MATLAB-Mode

All issues in mathworks/Emacs-MATLAB-Mode

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.