2010-04-28 09:30:42

by Tejun Heo

[permalink] [raw]
Subject: [PATCH] trivial: use (C) instead of \251

The latin-1 copyright character \251 is invalid in ASCII or UTF-8 and
causes annoying problems with some editors and tools. Use (C)
instead.

Signed-off-by: Tejun Heo <[email protected]>
Cc: Paul Mackerras <[email protected]>
---
I'm not really sure this would survive transport over mail in
appliable form, attaching the patch too just in case.

kernel/perf_event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 2f3fbf8..827ec53 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -4,7 +4,7 @@
* Copyright (C) 2008 Thomas Gleixner <[email protected]>
* Copyright (C) 2008-2009 Red Hat, Inc., Ingo Molnar
* Copyright (C) 2008-2009 Red Hat, Inc., Peter Zijlstra <[email protected]>
- * Copyright ? 2009 Paul Mackerras, IBM Corp. <[email protected]>
+ * Copyright (C) 2009 Paul Mackerras, IBM Corp. <[email protected]>
*
* For licensing details see kernel-base/COPYING
*/


Attachments:
patch (910.00 B)

2010-04-28 18:42:17

by Harald Arnesen

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251

Tejun Heo <[email protected]> writes:

> The latin-1 copyright character \251 is invalid in ASCII or UTF-8 and
> causes annoying problems with some editors and tools. Use (C)
> instead.

Why do we need anything there at all?
--
Hilsen Harald.

2010-04-28 20:20:35

by Tejun Heo

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251

On 04/28/2010 08:42 PM, Harald Arnesen wrote:
> Tejun Heo <[email protected]> writes:
>
>> The latin-1 copyright character \251 is invalid in ASCII or UTF-8 and
>> causes annoying problems with some editors and tools. Use (C)
>> instead.
>
> Why do we need anything there at all?

We don't necessarily need it but it's also pretty rude to strip
other's copyright notices and other entries use (C), so.... :-)

--
tejun

2010-04-28 22:41:36

by Jiri Kosina

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251

On Wed, 28 Apr 2010, Tejun Heo wrote:

> The latin-1 copyright character \251 is invalid in ASCII or UTF-8 and
> causes annoying problems with some editors and tools. Use (C)
> instead.
>
> Signed-off-by: Tejun Heo <[email protected]>
> Cc: Paul Mackerras <[email protected]>
> ---
> I'm not really sure this would survive transport over mail in
> appliable form, attaching the patch too just in case.

It didn't survive :) But it was easy enough to fix by hand. Applied,
thanks Tejun.

> kernel/perf_event.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/perf_event.c b/kernel/perf_event.c
> index 2f3fbf8..827ec53 100644
> --- a/kernel/perf_event.c
> +++ b/kernel/perf_event.c
> @@ -4,7 +4,7 @@
> * Copyright (C) 2008 Thomas Gleixner <[email protected]>
> * Copyright (C) 2008-2009 Red Hat, Inc., Ingo Molnar
> * Copyright (C) 2008-2009 Red Hat, Inc., Peter Zijlstra <[email protected]>
> - * Copyright ? 2009 Paul Mackerras, IBM Corp. <[email protected]>
> + * Copyright (C) 2009 Paul Mackerras, IBM Corp. <[email protected]>
> *
> * For licensing details see kernel-base/COPYING
> */
>

--
Jiri Kosina
SUSE Labs, Novell Inc.

2010-04-30 16:48:11

by Jiri Kosina

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251

On Fri, 30 Apr 2010, Ingo Molnar wrote:

> > > The latin-1 copyright character \251 is invalid in ASCII or UTF-8 and
> > > causes annoying problems with some editors and tools. Use (C)
> > > instead.
> > >
> > > Signed-off-by: Tejun Heo <[email protected]>
> > > Cc: Paul Mackerras <[email protected]>
> > > ---
> > > I'm not really sure this would survive transport over mail in
> > > appliable form, attaching the patch too just in case.
> >
> > It didn't survive :) But it was easy enough to fix by hand. Applied,
> > thanks Tejun.
>
> NAK.
>
> A similar patch was sent a few weeks ago, it was objected to and rejected -
> the copyright character was used for legal reasons.

Well, Paul himself stated that according to their lawyer department,
"Copyright" (which is there) is enough. So it made sense to remove invalid
(at least in some sense) character.

Also zillion of other files copyrighted by Paul contain "Copyright (C)".

If we really want this character there then, why not rather in UTF-8, so
that it works flawlessly?

> Jiri, in the future please dont apply 'trivial' patches that involve
> subsystems that i co-maintain and which is not acked by any of the subsystem
> maintainers.

OK, as you wish.

--
Jiri Kosina

2010-04-30 17:07:41

by Jiri Kosina

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251

On Fri, 30 Apr 2010, Ingo Molnar wrote:

> > Well, Paul himself stated that according to their lawyer department,
> > "Copyright" (which is there) is enough. So it made sense to remove invalid
> > (at least in some sense) character.
> >
> > Also zillion of other files copyrighted by Paul contain "Copyright (C)".
> >
> > If we really want this character there then, why not rather in UTF-8, so
> > that it works flawlessly?
>
> It might be fine but i havent seen Paul reply to this thread - and this is my
> point: _you_ should have waited for an ack from Paul (who is co-maintaining
> that file) before applying it. The commit doesnt have it:

I got Pauls reply as "as soon as there is `Copyright', it's fine". If I
misunderstood it, sorry for that, and I'll drop the patch.

Paul, could you please send explicit Acked-by: or Naked-by:, so that
everything is in line?

Thanks,

--
Jiri Kosina
SUSE Labs, Novell Inc.

2010-04-30 17:47:40

by Harald Arnesen

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251

Tejun Heo <[email protected]> writes:

> On 04/28/2010 08:42 PM, Harald Arnesen wrote:
>> Tejun Heo <[email protected]> writes:
>>
>>> The latin-1 copyright character \251 is invalid in ASCII or UTF-8 and
>>> causes annoying problems with some editors and tools. Use (C)
>>> instead.
>>
>> Why do we need anything there at all?
>
> We don't necessarily need it but it's also pretty rude to strip
> other's copyright notices and other entries use (C), so.... :-)

I meant that:

Copyright © somename
Copyright (C) somename
Copyright somename

all have the same legal meaning.
--
Hilsen Harald.

2010-04-30 17:58:25

by Ingo Molnar

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251


* Jiri Kosina <[email protected]> wrote:

> On Fri, 30 Apr 2010, Ingo Molnar wrote:
>
> > > Well, Paul himself stated that according to their lawyer department,
> > > "Copyright" (which is there) is enough. So it made sense to remove invalid
> > > (at least in some sense) character.
> > >
> > > Also zillion of other files copyrighted by Paul contain "Copyright (C)".
> > >
> > > If we really want this character there then, why not rather in UTF-8, so
> > > that it works flawlessly?
> >
> > It might be fine but i havent seen Paul reply to this thread - and this is my
> > point: _you_ should have waited for an ack from Paul (who is co-maintaining
> > that file) before applying it. The commit doesnt have it:
>
> I got Pauls reply as "as soon as there is `Copyright', it's fine". [...]

If lkml was not Cc:-ed to that reply (which appears to be the case) then it's
worth asking for / waiting for an explicit ack.

> [...] If I misunderstood it, sorry for that, and I'll drop the patch.
>
> Paul, could you please send explicit Acked-by: or Naked-by:, so that
> everything is in line?

And in that case my NAK is moot.

Thanks,

Ingo

2010-04-30 18:10:14

by Ingo Molnar

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251


* Jiri Kosina <[email protected]> wrote:

> On Wed, 28 Apr 2010, Tejun Heo wrote:
>
> > The latin-1 copyright character \251 is invalid in ASCII or UTF-8 and
> > causes annoying problems with some editors and tools. Use (C)
> > instead.
> >
> > Signed-off-by: Tejun Heo <[email protected]>
> > Cc: Paul Mackerras <[email protected]>
> > ---
> > I'm not really sure this would survive transport over mail in
> > appliable form, attaching the patch too just in case.
>
> It didn't survive :) But it was easy enough to fix by hand. Applied,
> thanks Tejun.

NAK.

A similar patch was sent a few weeks ago, it was objected to and rejected -
the copyright character was used for legal reasons.

Jiri, in the future please dont apply 'trivial' patches that involve
subsystems that i co-maintain and which is not acked by any of the subsystem
maintainers.

Thanks,

Ingo

2010-04-30 18:53:02

by Ingo Molnar

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251


* Jiri Kosina <[email protected]> wrote:

> On Fri, 30 Apr 2010, Ingo Molnar wrote:
>
> > > > The latin-1 copyright character \251 is invalid in ASCII or UTF-8 and
> > > > causes annoying problems with some editors and tools. Use (C)
> > > > instead.
> > > >
> > > > Signed-off-by: Tejun Heo <[email protected]>
> > > > Cc: Paul Mackerras <[email protected]>
> > > > ---
> > > > I'm not really sure this would survive transport over mail in
> > > > appliable form, attaching the patch too just in case.
> > >
> > > It didn't survive :) But it was easy enough to fix by hand. Applied,
> > > thanks Tejun.
> >
> > NAK.
> >
> > A similar patch was sent a few weeks ago, it was objected to and rejected -
> > the copyright character was used for legal reasons.
>
> Well, Paul himself stated that according to their lawyer department,
> "Copyright" (which is there) is enough. So it made sense to remove invalid
> (at least in some sense) character.
>
> Also zillion of other files copyrighted by Paul contain "Copyright (C)".
>
> If we really want this character there then, why not rather in UTF-8, so
> that it works flawlessly?

It might be fine but i havent seen Paul reply to this thread - and this is my
point: _you_ should have waited for an ack from Paul (who is co-maintaining
that file) before applying it. The commit doesnt have it:

commit 62006c58a9a2d8b72b5b65301965bc444d43e22c
Author: Tejun Heo <[email protected]>
Date: Wed Apr 28 11:30:31 2010 +0200

trivial: use (C) instead of \251

The latin-1 copyright character \251 is invalid in ASCII or UTF-8 and
causes annoying problems with some editors and tools. Use (C)
instead.

Signed-off-by: Tejun Heo <[email protected]>
Cc: Paul Mackerras <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>

We dont just go and change people's copyright notices, no matter how trivial
it may seem ...

Thanks,

Ingo

2010-04-30 18:56:36

by Tejun Heo

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251

Hello,

On 04/29/2010 06:57 AM, Paul Mackerras wrote:
> I don't want "(C)" in there because our lawyers tell me that it is
> legally meaningless, but "Copyright" on its own is good enough.

The other lines contain the (C) so if it's not harming, let's leave it
like that. It might be legally meaningless but is textually /
aesthetically meaningful to your fellow coders. :-)

Thanks.

--
tejun

2010-04-30 18:57:01

by Tejun Heo

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251

Hello,

On 04/28/2010 11:55 PM, Paul Mackerras wrote:
> Trouble is, the lawyers tell us that "(C)" is legally meaningless.

Ah... okay.

> However, "Copyright" on its own is enough, so if the copyright symbol
> annoys you, we could just remove it.

That's relieving. It sure is an annoyance for anyone who's not on
latin-1. It's an outright invalid character and as you've seen it's
not easy to even send a patch changing it. IMHO, if it were something
which couldn't be avoided at all, encoding it using utf-8 would be
much more appropriate.

Thanks.

--
tejun

2010-04-30 19:14:25

by Tejun Heo

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251

Hello,

On 04/30/2010 09:55 AM, Ingo Molnar wrote:
> A similar patch was sent a few weeks ago, it was objected to and rejected -
> the copyright character was used for legal reasons.

Paul says that "Copyright" is enough, so what are the legal reasons?

Also, if the copyright designator absolutely has to be there, then can
it be in UTF-8 at least?

Thanks.

--
tejun

2010-04-30 19:20:34

by Paul Mackerras

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251

On Thu, Apr 29, 2010 at 12:41:33AM +0200, Jiri Kosina wrote:

> On Wed, 28 Apr 2010, Tejun Heo wrote:
>
> > The latin-1 copyright character \251 is invalid in ASCII or UTF-8 and
> > causes annoying problems with some editors and tools. Use (C)
> > instead.
> >
> > Signed-off-by: Tejun Heo <[email protected]>
> > Cc: Paul Mackerras <[email protected]>
> > ---
> > I'm not really sure this would survive transport over mail in
> > appliable form, attaching the patch too just in case.
>
> It didn't survive :) But it was easy enough to fix by hand. Applied,
> thanks Tejun.

I tried to reply to this earlier but I think my reply vanished due to
a mail problem.

I don't want "(C)" in there because our lawyers tell me that it is
legally meaningless, but "Copyright" on its own is good enough.
So I would prefer that you either remove the (C) entirely or convert
the copyright symbol to proper UTF-8 (0xc2 0xa9).

Thanks,
Paul.

2010-04-30 22:18:59

by H. Peter Anvin

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251

On 04/30/2010 12:59 AM, Tejun Heo wrote:
> Hello,
>
> On 04/30/2010 09:55 AM, Ingo Molnar wrote:
>> A similar patch was sent a few weeks ago, it was objected to and rejected -
>> the copyright character was used for legal reasons.
>
> Paul says that "Copyright" is enough, so what are the legal reasons?
>
> Also, if the copyright designator absolutely has to be there, then can
> it be in UTF-8 at least?
>
> Thanks.
>

Transcoding to UTF-8 would seem appropriate. On the other hand, I am
most definitely not a lawyer.

-hpa

2010-05-01 00:34:17

by Paul Mackerras

[permalink] [raw]
Subject: Re: [PATCH] trivial: use (C) instead of \251

On Fri, Apr 30, 2010 at 11:04:46AM +0200, Jiri Kosina wrote:
> On Fri, 30 Apr 2010, Ingo Molnar wrote:
>
> > > Well, Paul himself stated that according to their lawyer department,
> > > "Copyright" (which is there) is enough. So it made sense to remove invalid
> > > (at least in some sense) character.
> > >
> > > Also zillion of other files copyrighted by Paul contain "Copyright (C)".
> > >
> > > If we really want this character there then, why not rather in UTF-8, so
> > > that it works flawlessly?
> >
> > It might be fine but i havent seen Paul reply to this thread - and this is my
> > point: _you_ should have waited for an ack from Paul (who is co-maintaining
> > that file) before applying it. The commit doesnt have it:
>
> I got Pauls reply as "as soon as there is `Copyright', it's fine". If I
> misunderstood it, sorry for that, and I'll drop the patch.
>
> Paul, could you please send explicit Acked-by: or Naked-by:, so that
> everything is in line?

Nacked-by: Paul Mackerras <[email protected]>

Please apply the patch I just sent that changes the encoding to
UTF-8.

I take your point that there are lots of other copyright notices in
the kernel with "(C)", including mine, and I'm not for a moment
suggesting that they are all invalid. Nevertheless, it seems that it
is better to use the proper copyright symbol rather than "(C)" for new
code, so I'd like to keep the copyright symbol here.

Paul.