bugGNU Octave - Bugs: bug #50774, test native2unicode and...

 
 

bug #50774: test native2unicode and unicode2native fail in MXE-Octave

Submitter:  Avinoam Kalma <avinoam>
Submitted:  Mon 10 Apr 2017 06:01:52 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Avinoam Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 11 Jun 2017 04:51:31 AM UTC, comment #5: 

The patch fixed the failures.
Closing as fixed. Thanks :-)

Avinoam Kalma <avinoam>
Group Member
Thu 08 Jun 2017 07:24:40 PM UTC, comment #4: 

I pushed the patch in bug #49842 which should fix the tests on Windows. Marking as ready for test.

Markus Mützel <mmuetzel>
Group administrator
Thu 01 Jun 2017 01:55:00 PM UTC, comment #3: 

I posted a patch for this in bug #49842. It also includes a fix for the test with "Latin-1" which is also unsupported on Windows.

Markus Mützel <mmuetzel>
Group administrator
Wed 31 May 2017 05:36:38 PM UTC, comment #2: 

ISO_8859-5 also works in both

John Donoghue <lostbard>
Group Member
Wed 31 May 2017 05:31:26 PM UTC, comment #1: 

Attempting to run the iconv executable program in mxe-octave:


> iconv -t UTF-8 -f "ISO 8859-5" input.txt
iconv.exe: conversion from ISO 8859-5 unsupported


However, running


> iconv -t UTF-8 -f "ISO-8859-5" input.txt


works ok

In Linux, both ways work fine

John Donoghue <lostbard>
Group Member
Mon 10 Apr 2017 06:01:52 AM UTC, original submission:  


testing native2unicode and unicode2native fail in MXE-Octave under Win-10:


>> test native2unicode
***** assert (double (native2unicode (164:170, 'ISO 8859-5')),
        [208 132 208 133 208 134 208 135 208 136 208 137 208 138]);
!!!!! test failed
native2unicode: converting from codepage 'ISO 8859-5' to UTF-8: Invalid argument
>> test unicode2native
***** assert (unicode2native ("ЄЅІЇЈЉЊ", "ISO 8859-5"), uint8 (164:170));
!!!!! test failed
native2unicode: converting from UTF-8 to codepage 'ISO 8859-5': Invalid argument


Avinoam Kalma <avinoam>
Group Member

 

(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 lostbard (Posted a comment)
  • -email is unavailable- added by avinoam (Submitted the item)
  • -email is unavailable- added by avinoam
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2017-06-11 avinoam StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2017-06-08 mmuetzel StatusNone Ready For Test
    2017-04-10 avinoam Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code