Re: encoding cleanups in cvs repo

Lists: pgsql-hackers
From: Magnus Hagander <magnus(at)hagander(dot)net>
To: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: encoding cleanups in cvs repo
Date: 2008-12-22 16:15:47
Message-ID: 494FBD33.1020805@hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

I have cleaned up a couple of badly broken encodings in cvs commit
messages in:

src/backend/utils/error/Attic/exc.c,v

per discussion with Alvaro, by simply editing the RCS file directly in
the cvs repository. Only the commit message was changed (broken
character removed)

Should have no effect. In case something broke, I have extra backups :-)

//Magnus


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: encoding cleanups in cvs repo
Date: 2008-12-23 04:57:17
Message-ID: 15505.1230008237@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Magnus Hagander <magnus(at)hagander(dot)net> writes:
> I have cleaned up a couple of badly broken encodings in cvs commit
> messages in:

> src/backend/utils/error/Attic/exc.c,v

Out of curiosity ... what problems exactly? I just looked through my
last complete dump of CVS log history and didn't see anything funny
in the messages for exc.c ...

regards, tom lane


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: encoding cleanups in cvs repo
Date: 2008-12-23 08:56:36
Message-ID: 4950A7C4.4030908@hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom Lane wrote:
> Magnus Hagander <magnus(at)hagander(dot)net> writes:
>> I have cleaned up a couple of badly broken encodings in cvs commit
>> messages in:
>
>> src/backend/utils/error/Attic/exc.c,v
>
> Out of curiosity ... what problems exactly? I just looked through my
> last complete dump of CVS log history and didn't see anything funny
> in the messages for exc.c ...

***************
*** 1337,1344 ****
log
@Avoiding
cc1: warnings being treated as errors
! exc.c: In function ^ExcRaise':
! exc.c:186: warning: passing arg 1 of ^Longjmp' from incompatible
pointer type
gmake[3]: *** [exc.o] Error 1

Now we have:
--- 1337,1344 ----
log
@Avoiding
cc1: warnings being treated as errors
! exc.c: In function 'ExcRaise':
! exc.c:186: warning: passing arg 1 of 'Longjmp' from incompatible
pointer type
gmake[3]: *** [exc.o] Error 1

That's the output from diff, which also doesn't properly recognise the
character, but it should give you a pointer where it is. (It's not just
the ^ character, that's what diff shows me for something else, obviously)

I think it's a "backtick" in some encoding.

//Magnus


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: encoding cleanups in cvs repo
Date: 2008-12-23 11:01:38
Message-ID: 20081223110138.GA6217@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom Lane wrote:
> Magnus Hagander <magnus(at)hagander(dot)net> writes:
> > I have cleaned up a couple of badly broken encodings in cvs commit
> > messages in:
>
> > src/backend/utils/error/Attic/exc.c,v
>
> Out of curiosity ... what problems exactly? I just looked through my
> last complete dump of CVS log history and didn't see anything funny
> in the messages for exc.c ...

It's rev 1.7 of that file -- it had a ^E and a ^L.

There was something funny in pgbench.c too, around 1.41 or something
like that.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: encoding cleanups in cvs repo
Date: 2008-12-23 14:12:45
Message-ID: 25277.1230041565@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Tom Lane wrote:
>> Out of curiosity ... what problems exactly? I just looked through my
>> last complete dump of CVS log history and didn't see anything funny
>> in the messages for exc.c ...

> It's rev 1.7 of that file -- it had a ^E and a ^L.

Ah, I was looking for high-bit-set characters. Yeah, I see those.
The backtick is clearly the right thing if you compare to the adjacent
commit message for another branch.

regards, tom lane


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: encoding cleanups in cvs repo
Date: 2008-12-23 15:27:40
Message-ID: 20081223152740.GD6217@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > Tom Lane wrote:
> >> Out of curiosity ... what problems exactly? I just looked through my
> >> last complete dump of CVS log history and didn't see anything funny
> >> in the messages for exc.c ...
>
> > It's rev 1.7 of that file -- it had a ^E and a ^L.
>
> Ah, I was looking for high-bit-set characters.

Right, we have our share of those too, but Magnus is filtering them with
iconv or Python internal recoding routines, and they don't cause
problems. However those routines were not touching those control chars,
and later steps of the process were choking on them.

> Yeah, I see those. The backtick is clearly the right thing if you
> compare to the adjacent commit message for another branch.

Right, and it's the usual quoting rule used by FSF stuff (and others I
assume).

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.