]>
Commit | Line | Data |
---|---|---|
dc9d9a8e JB |
1 | --- cdrdao-1.1.5/trackdb/CdTextItem.cc.orig Sun Apr 29 15:42:08 2001 |
2 | +++ cdrdao-1.1.5/trackdb/CdTextItem.cc Sat Oct 12 21:13:26 2002 | |
3 | @@ -18,6 +18,7 @@ | |
4 | */ | |
5 | ||
6 | #include <iostream.h> | |
7 | +#include <iomanip.h> | |
8 | #include <assert.h> | |
9 | #include <string.h> | |
10 | #include <ctype.h> | |
11 | @@ -129,7 +130,7 @@ | |
12 | else if (isprint(data_[i])) | |
13 | out << data_[i]; | |
14 | else | |
15 | - out.form("\\%03o", (unsigned int)data_[i]); | |
16 | + out << '\\' << setw(3) << setfill('0') << oct << (unsigned int)data_[i] << setfill(' ') << dec; | |
17 | } | |
18 | ||
19 | out << "\""; | |
20 | @@ -140,7 +141,7 @@ | |
21 | out << " {"; | |
22 | for (i = 0; i < dataLen_; i++) { | |
23 | if (i == 0) { | |
24 | - out.form("%2d", (unsigned int)data_[i]); | |
25 | + out << setw(2) << dec << (unsigned int)data_[i]; | |
26 | } | |
27 | else { | |
28 | if (i % 12 == 0) | |
29 | @@ -148,7 +149,7 @@ | |
30 | else | |
31 | out << ", "; | |
32 | ||
33 | - out.form("%2d", (unsigned int)data_[i]); | |
34 | + out << setw(2) << dec << (unsigned int)data_[i]; | |
35 | } | |
36 | } | |
37 | ||
38 | --- cdrdao-1.1.5/utils/toc2cue.cc.orig Sun Apr 29 15:42:09 2001 | |
39 | +++ cdrdao-1.1.5/utils/toc2cue.cc Sat Oct 12 21:21:18 2002 | |
40 | @@ -27,6 +27,7 @@ | |
41 | #include <stdarg.h> | |
42 | #include <getopt.h> | |
43 | #include <fstream.h> | |
44 | +#include <iomanip.h> | |
45 | ||
46 | #include "util.h" | |
47 | #include "Toc.h" | |
48 | @@ -291,7 +292,7 @@ | |
49 | trun != NULL; | |
50 | trun = titr.next(start, end), trackNr++) { | |
51 | out << " TRACK "; | |
52 | - out.form("%02d ", trackNr); | |
53 | + out << setw(2) << setfill('0') << dec << trackNr << setfill(' ') << " "; | |
54 | ||
55 | switch (trun->type()) { | |
56 | case TrackData::AUDIO: |