bugGNU Octave - Bugs: bug #62550, Unicode support for script file...

 
 

bug #62550: Unicode support for script file names

Submitter:  None
Submitted:  Tue 31 May 2022 03:38:02 PM UTC
   
 
Category:  Interpreter Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 01 Jun 2022 09:50:14 AM UTC, comment #2: 


> Does Matlab allow identifiers to have additional non-ASCII characters?  If so, is that a recent change?


Matlab R2022a still doesn't allow non-ASCII characters in identifiers.


According to their documentation:
https://www.mathworks.com/help/matlab/matlab_prog/variable-names.html

> A valid variable name starts with a letter, followed by letters, digits, or underscores.


And
https://www.mathworks.com/help/matlab/ref/function.html

> Valid function names begin with an alphabetic character, and can contain letters, numbers, or underscores.


I didn't find where they document valid names for scripts. But the rules seem to be the same as for variables and functions.

Markus Mützel <mmuetzel>
Group administrator
Wed 01 Jun 2022 03:44:07 AM UTC, comment #1: 

Does


source ("schläfli")


work for you?

You can only use ASCII names for function or script names in Octave is because the names have to be valid identifiers in the language and valid identifiers are limited to the pattern


[_$a-zA-Z][_$a-zA-Z0-9]*


Does Matlab allow identifiers to have additional non-ASCII characters?  If so, is that a recent change?

John W. Eaton <jwe>
Group administrator
Tue 31 May 2022 03:38:02 PM UTC, original submission:  

Request that Octave kindly support Unicode file names. File schläfli.m calculates Schläfli symbols (https://en.wikipedia.org/wiki/Schläfli_symbol). Calling it inside Octave causes an error:


>> schläfli
error: parse error:

  syntax error

>>> schläfli
        ^


But calling it outside Octave is OK.

octave schläfli.m
( normal output from schläfli.m )
-verbatim+

Unicode file names are accepted by gcc, g++, Python, etc.

Anonymous

 

(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 mmuetzel (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  •  

    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.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-06-26 mmuetzel SummaryUnicode file name support Unicode support for script file names
    2022-06-01 mmuetzel CategoryNone Interpreter
        Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
        Release7.1.0 dev

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code