bugGNU Octave - Bugs: bug #62957, struct cannot be indexed with...

 
 

bug #62957: struct cannot be indexed with non-latin string

Submitter:  Yu Hongbo <yuhongbo>
Submitted:  Thu 25 Aug 2022 01:02:12 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 25 Aug 2022 01:52:54 PM UTC, comment #1: 

You'll need to index with a string in that case:

value_order_struct = struct('一', 'one');
value_order_struct.('一')


Closing as invalid.

Markus Mützel <mmuetzel>
Group administrator
Thu 25 Aug 2022 01:02:12 PM UTC, original submission:  

I can write key-values with non-latin strings, but cannot index.
Here is my code:

>> value_order_struct = struct('一', 'one');
>> value_order_struct.一

error: parse error:

  syntax error

>>> value_order_struct.一

Yu Hongbo <yuhongbo>

 

(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 yuhongbo (Submitted the item)
  •  

    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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-08-25 mmuetzel StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code