Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in profiles/default/bsd: ChangeLog profile.bashrc
Date: Wed, 02 May 2012 21:46:04
Message-Id: 201205021745.42173.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in profiles/default/bsd: ChangeLog profile.bashrc by Mike Gilbert
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

Attachments

File name MIME type
signature.asc application/pgp-signature