Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Development (http://www.linux-archive.org/gentoo-development/)
-   -   gentoo-x86 commit in profiles/default/bsd: ChangeLog profile.bashrc (http://www.linux-archive.org/gentoo-development/662464-gentoo-x86-commit-profiles-default-bsd-changelog-profile-bashrc.html)

Mike Frysinger 05-02-2012 09:45 PM

gentoo-x86 commit in profiles/default/bsd: ChangeLog profile.bashrc
 
On Wednesday 02 May 2012 16:49:21 Mike Gilbert wrote:
> On Wed, May 2, 2012 at 4:38 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> > On Wednesday 02 May 2012 14:04:57 Mike Gilbert wrote:
> >> 2. If so, do these tools need to be fixed to always generate UTF-8?
> >
> > i don't think either of these tools process the whole file. it just
> > prepends new content. i could be wrong.
>
> It looks like echangelog slurps the whole ChangeLog into memory, makes
> the necessary edits, and then barfs it back out.

a simple test seems like it doesn't re-encode the stream though

$ cd /usr/portage/dev-util/strace
$ file ChangeLog
ChangeLog: UTF-8 Unicode text
$ echo >> metadata.xml
$ LC_ALL=C echangelog foo
$ cvs diff ChangeLog
<only new entry is shown>
-mike

Naohiro Aota 05-03-2012 04:25 AM

gentoo-x86 commit in profiles/default/bsd: ChangeLog profile.bashrc
 
Mike Gilbert <floppym@gentoo.org> writes:

> On Wed, May 2, 2012 at 11:08 AM, Samuli Suominen <ssuominen@gentoo.org> wrote:
>
>> Oops, something went wrong here. Please fix your terminal/editor encoding to
>> unicode.
>>
>
> I have two questions:
>
> 1. Was this a repoman or echangelog generated entry?

I've first used echangelog to generate the log entry. But there was
another change on the ChangeLog file. So I moved my entry using vim.

Mike Frysinger 05-03-2012 04:44 AM

gentoo-x86 commit in profiles/default/bsd: ChangeLog profile.bashrc
 
On Thursday 03 May 2012 00:25:25 Naohiro Aota wrote:
> Mike Gilbert writes:
> > On Wed, May 2, 2012 at 11:08 AM, Samuli Suominen wrote:
> >> Oops, something went wrong here. Please fix your terminal/editor
> >> encoding to unicode.
> >
> > I have two questions:
> >
> > 1. Was this a repoman or echangelog generated entry?
>
> I've first used echangelog to generate the log entry. But there was
> another change on the ChangeLog file. So I moved my entry using vim.

there it is. vim (last i looked) will re-encode for you. guess you should fix
your locale settings to something that ends in ".UTF8" ;).
-mike

Michał Górny 05-03-2012 07:02 AM

gentoo-x86 commit in profiles/default/bsd: ChangeLog profile.bashrc
 
On Thu, 3 May 2012 00:44:46 -0400
Mike Frysinger <vapier@gentoo.org> wrote:

> On Thursday 03 May 2012 00:25:25 Naohiro Aota wrote:
> > Mike Gilbert writes:
> > > On Wed, May 2, 2012 at 11:08 AM, Samuli Suominen wrote:
> > >> Oops, something went wrong here. Please fix your terminal/editor
> > >> encoding to unicode.
> > >
> > > I have two questions:
> > >
> > > 1. Was this a repoman or echangelog generated entry?
> >
> > I've first used echangelog to generate the log entry. But there was
> > another change on the ChangeLog file. So I moved my entry using vim.
>
> there it is. vim (last i looked) will re-encode for you. guess you
> should fix your locale settings to something that ends in ".UTF8" ;).

Or set a more friendly 'fencs' in your vimrc.

--
Best regards,
Michał Górny


All times are GMT. The time now is 04:57 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.