[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63930] fprintf problem
From: |
Dmitri A. Sergatskov |
Subject: |
[Octave-bug-tracker] [bug #63930] fprintf problem |
Date: |
Fri, 24 Mar 2023 11:26:58 -0400 (EDT) |
Follow-up Comment #17, bug #63930 (project octave):
Using fprintf_bug1 as a test script.
01_D_p.txt is the output of the patched version, 01_D.txt is unpatched
version:
$ diff 01_D_p.txt 01_D.txt
1c1
< Décompte 2022
---
> D�compte 2022
25,34c25,34
< Coûts 2022 : 238.70 [CHF]
< Coûts 2022 : 238.70 [CHF]
< Coûts 2022 : 238.70 [CHF]
< Coûts 2022 : 238.70 [CHF]
< Coûts 2022 : 238.70 [CHF]
< Coûts 2022 : 238.70 [CHF]
< Coûts 2022 : 238.70 [CHF]
< Coûts 2022 : 238.70 [CHF]
< Coûts 2022 : 238.70 [CHF]
< Coûts 2022 : 238.70 [CHF]
---
> Co�ts 2022 : 238.70 [CHF]
> Co�ts 2022 : 238.70 [CHF]
> Co�ts 2022 : 238.70 [CHF]
> Co�ts 2022 : 238.70 [CHF]
> Co�ts 2022 : 238.70 [CHF]
> Co�ts 2022 : 238.70 [CHF]
> Co�ts 2022 : 238.70 [CHF]
> Co�ts 2022 : 238.70 [CHF]
> Co�ts 2022 : 238.70 [CHF]
> Co�ts 2022 : 238.70 [CHF]
or
$ od -c 01_D.txt | head -2
0000000 D 351 c o m p t e
0000020
$ od -c 01_D_p.txt | head -2
0000000 D 303 251 c o m p t e
0000020
$ od -c 01_D.txt | tail -6
0001500 2 : 2 3 8 . 7 0 [ C
0001520 H F ] \n C o 373 t s
0001540
0001560 2 0 2 2 : 2
0001600 3 8 . 7 0 [ C H F ] \n
0001615
$ od -c 01_D_p.txt | tail -6
0001520 2 3 8 . 7 0 [ C H F ] \n C o
0001540 303 273 t s
0001560
0001600 2 0 2 2 : 2 3 8 . 7 0
0001620 [ C H F ] \n
0001630
So the output file is utf-8 encoded now (while the source is latin1). Not sure
if this is a desired outcome.
Dmitri.
--
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63930>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63930] fprintf problem, (continued)
- [Octave-bug-tracker] [bug #63930] fprintf problem, Charles Praplan, 2023/03/16
- [Octave-bug-tracker] [bug #63930] fprintf problem, Charles Praplan, 2023/03/18
- [Octave-bug-tracker] [bug #63930] fprintf problem, Charles Praplan, 2023/03/18
- [Octave-bug-tracker] [bug #63930] fprintf problem, Charles Praplan, 2023/03/19
- [Octave-bug-tracker] [bug #63930] fprintf problem, Dmitri A. Sergatskov, 2023/03/19
- [Octave-bug-tracker] [bug #63930] fprintf problem, Dmitri A. Sergatskov, 2023/03/19
- [Octave-bug-tracker] [bug #63930] fprintf problem, Charles Praplan, 2023/03/19
- [Octave-bug-tracker] [bug #63930] fprintf problem, Dmitri A. Sergatskov, 2023/03/19
- [Octave-bug-tracker] [bug #63930] fprintf problem, Arun Giridhar, 2023/03/20
- [Octave-bug-tracker] [bug #63930] fprintf problem, Arun Giridhar, 2023/03/24
- [Octave-bug-tracker] [bug #63930] fprintf problem,
Dmitri A. Sergatskov <=
- [Octave-bug-tracker] [bug #63930] fprintf problem, Arun Giridhar, 2023/03/24
- [Octave-bug-tracker] [bug #63930] fprintf problem, Dmitri A. Sergatskov, 2023/03/24
- [Octave-bug-tracker] [bug #63930] fprintf problem, Charles Praplan, 2023/03/24
- [Octave-bug-tracker] [bug #63930] fprintf problem, Arun Giridhar, 2023/03/24
- [Octave-bug-tracker] [bug #63930] fprintf problem, Arun Giridhar, 2023/03/24
- [Octave-bug-tracker] [bug #63930] fprintf problem, Dmitri A. Sergatskov, 2023/03/24
- [Octave-bug-tracker] [bug #63930] fprintf problem, Arun Giridhar, 2023/03/24
- [Octave-bug-tracker] [bug #63930] fprintf problem, Dmitri A. Sergatskov, 2023/03/24
- [Octave-bug-tracker] [bug #63930] fprintf problem, Dmitri A. Sergatskov, 2023/03/24
- [Octave-bug-tracker] [bug #63930] fprintf problem, Dmitri A. Sergatskov, 2023/03/24