octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56788] parse error on command syntax with arg


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #56788] parse error on command syntax with argument that starts with a non-ASCII character
Date: Wed, 21 Aug 2019 13:29:57 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36

Update of bug #56788 (project octave):

                  Status:                    None => Confirmed              
                 Summary: The cd command does not work properly, you need to
write the name of the Russian directory in quotation marks, even if i => parse
error on command syntax with argument that starts with a non-ASCII character

    _______________________________________________________

Follow-up Comment #1:

I can confirm this error on Debian. I suspect this is because Octave's parser
is not Unicode-aware.

The syntax that lets you run a function without parentheses is called "command
syntax". It requires that the parser recognizes that a function name is
followed by whitespace and then by printable characters which are not
operators.

If the first character is an ASCII character, then it works. For example


$ mkdir Dокументы
$ octave
>> cd Dокументы
>> pwd
ans = /home/mike/Dокументы


The same error occurs with any leading accented characters in Western
languages, for example


$ mkdir ábc
$ octave
>> cd ábc
parse error:

  syntax error

>>> cd ábc
       ^



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56788>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]