1 |
On Wednesday 02 May 2012 16:49:21 Mike Gilbert wrote: |
2 |
> On Wed, May 2, 2012 at 4:38 PM, Mike Frysinger <vapier@g.o> wrote: |
3 |
> > On Wednesday 02 May 2012 14:04:57 Mike Gilbert wrote: |
4 |
> >> 2. If so, do these tools need to be fixed to always generate UTF-8? |
5 |
> > |
6 |
> > i don't think either of these tools process the whole file. it just |
7 |
> > prepends new content. i could be wrong. |
8 |
> |
9 |
> It looks like echangelog slurps the whole ChangeLog into memory, makes |
10 |
> the necessary edits, and then barfs it back out. |
11 |
|
12 |
a simple test seems like it doesn't re-encode the stream though |
13 |
|
14 |
$ cd /usr/portage/dev-util/strace |
15 |
$ file ChangeLog |
16 |
ChangeLog: UTF-8 Unicode text |
17 |
$ echo >> metadata.xml |
18 |
$ LC_ALL=C echangelog foo |
19 |
$ cvs diff ChangeLog |
20 |
<only new entry is shown> |
21 |
-mike |