bugGNU Octave - Bugs: bug #47925, encode error with 'gbk' of China...

 
 

bug #47925: encode error with 'gbk' of China in package 'symbolic'

Submitter:  None
Submitted:  Sun 15 May 2016 03:49:16 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.2
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 18 May 2016 05:30:04 AM UTC, comment #1: 

Thank you for this.

I think is a dupe of
https://savannah.gnu.org/bugs/?func=detailitem&item_id=46771

It should be fixed in git master, so hopefully in upcoming 2.4.0.  Please test that when it comes out (soon), or try from git if you need it urgently.  In either case your extra testing would be much appreciated!

Colin Macdonald <cbm>
Sun 15 May 2016 03:49:16 AM UTC, original submission:  

I am a Chinese user. When I used package 'symbolic' to calculate x+x, it returned this:

>> x=sym('x')
>> x+x

error: Python exception: UnicodeEncodeError: 'gbk' codec can't encode character '\u22c5' in position 155: il
legal multibyte sequence
    occurred while copying vars from Python
error: called from
    python_cmd at line 178 column 5
    mtimes at line 42 column 5
It seems something to do with the encode 'gbk' used by China. And I tested some examples. I found that any result that contains '*' will raise an error about '\u22c5', and '[' raises error about '\u23a1'.
Such as:
 >> [x,x]'*[x,x]
error: Python exception: UnicodeEncodeError: 'gbk' codec can't encode character '\u23a1' in position 254: il
legal multibyte sequence
    occurred while copying vars from Python
error: called from
    python_cmd at line 178 column 5
    ctranspose at line 84 column 5
My SymPy works well, and Python use utf-8 instead gbk, so I think it's a bug.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by cbm (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-01 mtmiller Dependencies- Depends on bugs #46771
    2016-11-01 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code