bugGNU Octave - Bugs: bug #56788, parse error on command syntax with...

 
 

bug #56788: parse error on command syntax with argument that starts with a non-ASCII character

Submitted by:  Blbulyan David <davidblbulyan>
Submitted on:  Wed 21 Aug 2019 01:38:27 PM UTC  
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Confirmed Assigned to:  None
Originator Name:  Blbulyan David Open/Closed:  Open
Release:  5.1.0 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 21 Aug 2019 07:04:10 PM UTC, comment #4: 

комментарий №3:

> > Will it ever be fixed?
>
> As with any bug on this bug tracker, it is open and available for any volunteer who is interested to investigate, work on, and fix it. Is this bug important to you? Important enough to spend time and/or money on helping to get it fixed?

No, this mistake is not too important for me, and besides, I do not have money to pay. I just notified you about it.

Blbulyan David <davidblbulyan>
Wed 21 Aug 2019 06:58:21 PM UTC, comment #3: 

> Will it ever be fixed?


As with any bug on this bug tracker, it is open and available for any volunteer who is interested to investigate, work on, and fix it. Is this bug important to you? Important enough to spend time and/or money on helping to get it fixed?

Mike Miller <mtmiller>
Project Administrator
Wed 21 Aug 2019 06:31:20 PM UTC, comment #2: 

комментарий №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
>        ^
>

Will it ever be fixed?

Blbulyan David <davidblbulyan>
Wed 21 Aug 2019 05:29:57 PM UTC, 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
       ^

Mike Miller <mtmiller>
Project Administrator
Wed 21 Aug 2019 01:38:27 PM UTC, original submission:  

>> cd Документы/

parse error:

  syntax error

>>> cd Документы/

       ^

>> cd "Документы/"
>>

WTF? Neither the path to this folder, nor the name of the folder itself contains spaces, why should I write it in quotation marks?


>> cd Desktop/
>>

WAT?
Here are the full paths to the folders:
/home/david/Desktop
/home/david/Документы

Blbulyan David <davidblbulyan>

 

(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 davidblbulyan (Submitted the item)
  • -email is unavailable- added by davidblbulyan
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-08-21 mtmiller StatusNone => Confirmed
        SummaryThe 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
    2019-08-21 davidblbulyan Carbon-Copy- => Added davidblbulyan

    Back to the top


    Powered by Savane 3.5