octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63930] fprintf problem


From: Charles Praplan
Subject: [Octave-bug-tracker] [bug #63930] fprintf problem
Date: Wed, 15 Mar 2023 13:09:24 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?63930>

                 Summary: fprintf problem
                   Group: GNU Octave
               Submitter: charprap
               Submitted: Wed 15 Mar 2023 05:09:22 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Charles Praplan
        Originator Email: 
             Open/Closed: Open
                 Release: 8.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 15 Mar 2023 05:09:22 PM UTC By: Charles Praplan <charprap>
fprintf_bug1.m illustrates a strange behavior of the fprintf function which
appeared with the new version of Octave (8.1.0).

The script writes 2 text files with the same content, except on line 5, but
the difference is small.
One of the two files is written correctly, while the other one contains an
error on another line (29) containing a special character.

The comparison between the 2 text file is plotted in the appended file
File_comparison_1.png.

The character which is printed where a ? in the comparison is 0x3F instead of
0xFB.

Any small change in the m-file can modify the result. Therefore additional
test files with the corresponding comparison.

I tried this on 2 different PCs with different codepages:
PS C:\> chcp
Active code page: 850

PS C:\> chcp
Active code page: 437







    _______________________________________________________
File Attachments:


-------------------------------------------------------
Date: Wed 15 Mar 2023 05:09:22 PM UTC  Name: fprintf_bug1.m  Size: 2KiB   By:
charprap

<http://savannah.gnu.org/bugs/download.php?file_id=54487>
-------------------------------------------------------
Date: Wed 15 Mar 2023 05:09:22 PM UTC  Name: fprintf_bug2.m  Size: 2KiB   By:
charprap

<http://savannah.gnu.org/bugs/download.php?file_id=54488>
-------------------------------------------------------
Date: Wed 15 Mar 2023 05:09:22 PM UTC  Name: File_comparison_1.png  Size:
27KiB   By: charprap

<http://savannah.gnu.org/bugs/download.php?file_id=54489>
-------------------------------------------------------
Date: Wed 15 Mar 2023 05:09:22 PM UTC  Name: File_comparison_2.png  Size:
26KiB   By: charprap

<http://savannah.gnu.org/bugs/download.php?file_id=54490>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63930>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]