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

 
 

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

Submitted by:  Felipe G. Nievinski <fgnievinski>
Submitted on:  Mon 13 Jan 2014 10:52:51 PM UTC  
 
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: John Donoghue <lostbard>
Originator Name: Open/Closed: Closed
Release: 3.8.0Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

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

Fixed for gui-release

John Donoghue <lostbard>
Project MemberIn charge of this item.
Sat 18 Jan 2014 12:53:29 AM UTC, comment #14:

Pushed to gui-release http://hg.savannah.gnu.org/hgweb/octave/rev/6736fc9bce24

John Donoghue <lostbard>
Project MemberIn charge of this item.
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>
Project Administrator
Fri 17 Jan 2014 04:53:05 AM UTC, comment #12:

This fixes it for me - check into stable?

(file #30298)

John Donoghue <lostbard>
Project MemberIn charge of this item.
Fri 17 Jan 2014 03:14:33 AM UTC, comment #11:

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

at the Octave command prompt and view the copyright header.

Mike Miller <mtmiller>
Project Administrator
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>
Project Administrator
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>
Project MemberIn charge of this item.
Thu 16 Jan 2014 11:17:18 PM UTC, comment #8:

ok - I can it in that file

John Donoghue <lostbard>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
Tue 14 Jan 2014 04:39:10 PM UTC, comment #4:

It appears to work ok on my windows 7 install.

John Donoghue <lostbard>
Project MemberIn charge of this item.
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 <ttl>
Project 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>
Project Administrator
Mon 13 Jan 2014 10:52:51 PM UTC, original submission:

e.g., a file containing:

becomes:

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 File(s):
   
   
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
  • -unavailable- added by lostbard (Posted a comment)
  • -unavailable- added by ttl (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by fgnievinski (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 18 Jan 2014 01:53:10 PM UTClostbardStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sat 18 Jan 2014 12:53:29 AM UTClostbardStatusPatch Submitted=>Ready For Test
    Fri 17 Jan 2014 04:53:05 AM UTClostbardAttached File-=>Added fix-utf.patch, #30298
      Item GroupOther=>Incorrect Result
      StatusConfirmed=>Patch Submitted
      Assigned toNone=>lostbard
    Fri 17 Jan 2014 03:13:24 AM UTCmtmillerStatusNeed Info=>Confirmed
      Operating SystemAny=>Microsoft Windows
    Thu 16 Jan 2014 11:01:21 PM UTCfgnievinskiAttached File-=>Added inputParser.m, #30295
    Tue 14 Jan 2014 05:33:16 AM UTCmtmillerStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1