bugGNU Octave - Bugs: bug #48306, Single quote appearing as...

 
 

bug #48306: Single quote appearing as "â" in documentation on Windows

Submitter:  None
Submitted:  Fri 24 Jun 2016 04:09:59 PM UTC
   
 
Category:  GUI Severity:  4 - Important
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed 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
   

Jump to the original submission

Thu 22 Sep 2016 04:57:55 PM UTC, comment #11: 

Patch works for me.  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Thu 22 Sep 2016 03:30:37 PM UTC, comment #10: 

Additionally, documentation changes are almost always allowed at any time because they are usually helpful and very unlikely to introduce changes in behavior or more bugs.

I'm building with MXE so it will be a few hours before I can test this.

Rik <rik5>
Group administrator
Thu 22 Sep 2016 09:23:19 AM UTC, comment #9: 

Since Severity is "Important" and due to the small change I've pushed it witch a minor change (space before "("): http://hg.savannah.gnu.org/hgweb/octave/rev/027ac2c5d574

Andreas Weber <andy1978>
Group Member
Thu 22 Sep 2016 06:51:01 AM UTC, comment #8: 

Taking into account the low risk of taking this patch and the quite high impact on the usability of the documentation browser on Windows, can this still be considered for 4.2?

Markus Mützel <mmuetzel>
Group administrator
Wed 21 Sep 2016 08:39:59 PM UTC, comment #7: 

This indeed is an issue for systems with a different standard codepage (Windows only?). Converting the string explicitly with UTF-8 seems to solve this for me.

Attached is the patch.

(file #38585)

Markus Mützel <mmuetzel>
Group administrator
Tue 12 Jul 2016 10:31:33 PM UTC, comment #6: 

Since this is a regression, I'm increasing its importance to 4.

Mike, even though there are other reports of Octave not handling external sources of UTF-8, this one is about Octave producing UTF-8 that it cannot handle.  That should be easier to fix, perhaps just by changing the @quote TeXinfo macro.

Lachlan Andrew <lachlan>
Tue 12 Jul 2016 07:26:21 PM UTC, comment #5: 

I've also observed this behavior. The Octave 4.0.1 Windows release works fine in the respect, but the Octave 4.0.3 Windows release does not. So I would consider this to be a regression.

Hartmut <hardy>
Fri 08 Jul 2016 04:05:34 PM UTC, comment #4: 

Aside from the command window, our usage of Qt should be very platform-agnostic.

The Octave command window is currently implemented as a operating system "terminal" or "console" interface, instead of a "text area" for example.

The POSIX terminal interface is a somewhat archaic but general purpose mechanism, and most operating systems support it, except for Windows. So the command window implementation for Windows uses Windows-specific calls to open a "console" and manipulate it, while the "Unix" command window implementation allocates a terminal.

A future version of the GUI may change to use a Qt text area for the command window, handle all keyboard interaction through Qt, manage command history recall and editing using Qt, etc. This would make the GUI completely platform-agnostic.

Mike Miller <mtmiller>
Group Member
Fri 08 Jul 2016 01:17:27 PM UTC, comment #3: 

Given that Qt is supposed to be cross-platform, why does the GUI need to be different for Windows and Posix?  (In particular, QTerminal is completely different.)  Is it that Qt behaves differently on the two platforms, or some need to interact with the OS?

Lachlan Andrew <lachlan>
Sun 26 Jun 2016 08:09:31 PM UTC, comment #2: 

Yes, the files are encoded correctly in UTF-8. This is a problem with the rendering of UTF-8 in the Qt GUI. Other bugs have also discussed the problem with rendering UTF-8 properly in Octave built for Windows. I don't know whether it's worth keeping this open as a separate report, bug see related bug #42036, bug #43099, bug #44538, and bug #47571.

Mike Miller <mtmiller>
Group Member
Fri 24 Jun 2016 04:28:16 PM UTC, comment #1: 

BTW, the octave.info* files are encoded in UTF-8. My guess is that Octave is reading or outputting the text as ISO-8859-1.

Anonymous
Fri 24 Jun 2016 04:09:59 PM UTC, original submission:  

Hi there!

I've noticed that in Octave on Windows, in any section of the Documentation tab, any occurrence of a word inside single quotes (e.g., ‘plot’) have the quotes replaced by â characters (e.g., ‘plotâ).

Researching the problem, it seems that the documentation files are fine, but Octave is either not reading or not displaying its contents correctly (perhaps due to wrong encoding).

In the "Operator Index" section, Octave shows (among others) the following line:


» ’ <2>.      (line  93)


... while Notepad and other text editors show the right content when opening the file at C:\Octave\Octave-4.0.2\share\info\octave.info-9 :


* ' <2>:                                 Arithmetic Ops.      (line  93)


(Of course, another problem of this specific section is that the description of the operators is not displayed in the Octave Documentation tab. Please see the attachments for screenshot comparisons.)

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #37564:  octave.png added by None (2KiB - image/png)
file #37565:  scite.png added by None (3KiB - image/png)

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by andy1978 (Posted a comment)
  • -email is unavailable- added by mmuetzel (Updated the item)
  • -email is unavailable- added by tiagoma
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by mtmiller (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 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-22 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2016-09-22 andy1978 StatusNone Ready For Test
    2016-09-22 andy1978 Dependencies- bugs #49154 is dependent
    2016-09-21 mmuetzel Attached File- Added bug48306_codepage_docu_browser.patch, #38585
    2016-08-04 tiagoma Carbon-Copy- Added tiagoma
    2016-07-12 lachlan Severity3 - Normal 4 - Important
        Item GroupOther Regression
    2016-06-26 mtmiller CategoryDocumentation GUI
    2016-06-24 None Attached File- Added octave.png, #37564
        Attached File- Added scite.png, #37565

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code