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

 
 

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

Submitted by:  None
Submitted on:  Sun 15 May 2016 03:49:16 AM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: DuplicateAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.2
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by cbm (Posted a comment)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 01 Nov 2016 03:57:31 AM UTCmtmillerDependencies-=>Depends on bugs #46771
    Tue 01 Nov 2016 03:57:17 AM UTCmtmillerStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1