bugGNU Octave - Bugs: bug #41226, GUI Editor doesn't load non-ASCII...

 
 

bug #41226: GUI Editor doesn't load non-ASCII characters correctly

Submitter:  Felipe G. Nievinski <fgnievinski>
Submitted:  Mon 13 Jan 2014 10:52:51 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  lostbard
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 18 Jan 2014 01:53:10 PM UTC, comment #15: 

Fixed for gui-release

John Donoghue <lostbard>
Group Member
Sat 18 Jan 2014 12:53:29 AM UTC, comment #14: 
John Donoghue <lostbard>
Group Member
Fri 17 Jan 2014 02:40:46 PM UTC, comment #13: 

This seems more like a GUI usability fix so I'd say gui-release, IMHO.

Mike Miller <mtmiller>
Group Member
Fri 17 Jan 2014 04:53:05 AM UTC, comment #12: 

This fixes it for me - check into stable?


(file #30298)

John Donoghue <lostbard>
Group Member
Fri 17 Jan 2014 03:14:33 AM UTC, comment #11: 

The file attached to this patch is not needed, simply type


edit doc


at the Octave command prompt and view the copyright header.

Mike Miller <mtmiller>
Group Member
Fri 17 Jan 2014 03:13:24 AM UTC, comment #10: 

Confirmed here as well, GUI editor does not seem to handle UTF-8 encoded files correctly, should be the default. It may be expecting some other file encoding by default on Windows, or maybe expecting a BOM to indicate UTF-8 on Windows? Does not affect the editor on Linux, updating bug header to Windows only.

Mike Miller <mtmiller>
Group Member
Thu 16 Jan 2014 11:36:28 PM UTC, comment #9: 

The attached file is using hex C3 AB (UTF-8)
The pasted string is using hex EB (extended ascii)


John Donoghue <lostbard>
Group Member
Thu 16 Jan 2014 11:17:18 PM UTC, comment #8: 

ok - I can  it in that file

John Donoghue <lostbard>
Group Member
Thu 16 Jan 2014 11:01:21 PM UTC, comment #7: 

tried that, didn't work.

interestingly, vim also has problems with those characters, unless I enter :set encoding=utf-8

I'm attached the file.


(file #30295)

Felipe G. Nievinski <fgnievinski>
Thu 16 Jan 2014 09:29:44 PM UTC, comment #6: 

have you tried later version of the installer?

John Donoghue <lostbard>
Group Member
Tue 14 Jan 2014 06:26:24 PM UTC, comment #5: 

I don't know if is the cause, but does your install contain the fix for translation files, where qt.conf was added?

John Donoghue <lostbard>
Group Member
Tue 14 Jan 2014 04:39:10 PM UTC, comment #4: 

It appears to work ok on my windows 7 install.

John Donoghue <lostbard>
Group Member
Tue 14 Jan 2014 01:28:07 PM UTC, comment #3: 

It seems like it's Windows only.

Felipe G. Nievinski <fgnievinski>
Tue 14 Jan 2014 05:51:41 AM UTC, comment #2: 

I guess it depends on the encoding of the file? On my ubuntu system the editor always saves files as UTF8. What happens on windows?

Torsten Lilge <ttl>
Group Member
Tue 14 Jan 2014 05:33:16 AM UTC, comment #1: 

No problem on Debian GNU/Linux with both 3.8.0 and default. What OS did you see this on?

Mike Miller <mtmiller>
Group Member
Mon 13 Jan 2014 10:52:51 PM UTC, original submission:  

e.g., a file containing:


## Copyright (C) 2011-2012 Carnë Draug <carandraug+dev@gmail.com>


becomes:


## Copyright (C) 2011-2012 Carnë Draug <carandraug+dev@gmail.com>


Although if I paste "ë" through the GUI, it works fine, so the issue must be restricted to the file loading procedure.

Felipe G. Nievinski <fgnievinski>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #30298:  fix-utf.patch added by lostbard (1KiB - application/octet-stream)
file #30295:  inputParser.m added by fgnievinski (10KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by fgnievinski (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 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-18 lostbard StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2014-01-18 lostbard StatusPatch Submitted Ready For Test
    2014-01-17 lostbard Attached File- Added fix-utf.patch, #30298
        Item GroupOther Incorrect Result
        StatusConfirmed Patch Submitted
        Assigned toNone lostbard
    2014-01-17 mtmiller StatusNeed Info Confirmed
        Operating SystemAny Microsoft Windows
    2014-01-16 fgnievinski Attached File- Added inputParser.m, #30295
    2014-01-14 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code