Skip to contentSkip to conversation

proc: fixup (c) sign

PATCH Superseded Linus Torvalds 2 participants 6 messages Apr 12, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 1 line · Alexey Dobriyan

Andrew's scripts butchered it :-(

Oh, it's not just Andrew.

Git will fix up commit messages etc, but the actual *patch* will be considered just "data". So if you send me Latin1 (like you did), I get a patch with Latin1.

Please just fix your broken mail environment, and move to the current century. Use a real utf-8 locale.

You seem to be using Mutt. Afaik, that should automatically honor your locale, and use utf-8,

But maybe you have it trying to send in Latin1 by default if that works. Just do something like

    set file_charset="utf-8:iso-8859-1"

to make utf-8 the preferred format.

Linus

#1 lore raw
Quoted 15 lines · Linus Torvalds
Quoted 1 line · Alexey Dobriyan

Andrew's scripts butchered it :-(

Oh, it's not just Andrew.

Git will fix up commit messages etc, but the actual *patch* will be considered just "data". So if you send me Latin1 (like you did), I get a patch with Latin1.

Please just fix your broken mail environment, and move to the current century. Use a real utf-8 locale.

You seem to be using Mutt. Afaik, that should automatically honor your locale, and use utf-8,

Quoted 6 lines

But maybe you have it trying to send in Latin1 by default if that works. Just do something like

    set file_charset="utf-8:iso-8859-1"

to make utf-8 the preferred format.

I've checked earlier mails, mutt has been "guessing" outgoing encoding by default. Let's try again.

#2 lore raw
Quoted 3 lines · Alexey Dobriyan

I've checked earlier mails, mutt has been "guessing" outgoing encoding by default. Let's try again.

I think it still does. This email came with

Content-Type: text/plain; charset=us-ascii

which is what I'd expect if Mutt has a "use the least complex charset that can fit the message".

If you look at my emails, you should see

Content-Type: text/plain; charset="UTF-8"

even for an email like this, that only has 7-bit ascii.

I'm not a Mutt user, so I don't know what the magic is for "just force utf-8 when sending".

For alpine, it's

posting-character-set=UTF-8

in the .pinerc file.

For gmail there used to be an "outgoing message encoding" setting, but it seems to have been removed (and now utf-8 is always on).

Linus

#3 lore raw

PATCH v3 1/1 proc: fixup copyright sign

In reply to Linus Torvalds

Add copyright in two files before they get autorubberstamped.

---

 tools/testing/selftests/proc/proc-loadavg-001.c        |    2 +-
 tools/testing/selftests/proc/proc-self-map-files-001.c |    2 +-
 tools/testing/selftests/proc/proc-self-map-files-002.c |    2 +-
 tools/testing/selftests/proc/proc-self-syscall.c       |   15 +++++++++++++++
 tools/testing/selftests/proc/proc-self-wchan.c         |   15 +++++++++++++++
 tools/testing/selftests/proc/proc-uptime-001.c         |    2 +-
 tools/testing/selftests/proc/proc-uptime-002.c         |    2 +-
 tools/testing/selftests/proc/proc-uptime.h             |    2 +-
 tools/testing/selftests/proc/read.c                    |    2 +-
 9 files changed, 37 insertions(+), 7 deletions(-)
tools/testing/selftests/proc/proc-loadavg-001.c +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
tools/testing/selftests/proc/proc-self-map-files-001.c +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
tools/testing/selftests/proc/proc-self-map-files-002.c +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
tools/testing/selftests/proc/proc-self-syscall.c +15 -0
@@ -1,3 +1,18 @@
+/*
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
 #define _GNU_SOURCE
 #include <unistd.h>
 #include <sys/syscall.h>
tools/testing/selftests/proc/proc-self-wchan.c +15 -0
@@ -1,3 +1,18 @@
+/*
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
tools/testing/selftests/proc/proc-uptime-001.c +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
tools/testing/selftests/proc/proc-uptime-002.c +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
tools/testing/selftests/proc/proc-uptime.h +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
tools/testing/selftests/proc/read.c +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
#4 lore raw

PATCH v4 1/1 proc: fixup copyright sign

Add copyright in two files before they get autorubberstamped.

---

 tools/testing/selftests/proc/proc-loadavg-001.c        |    2 +-
 tools/testing/selftests/proc/proc-self-map-files-001.c |    2 +-
 tools/testing/selftests/proc/proc-self-map-files-002.c |    2 +-
 tools/testing/selftests/proc/proc-self-syscall.c       |   15 +++++++++++++++
 tools/testing/selftests/proc/proc-self-wchan.c         |   15 +++++++++++++++
 tools/testing/selftests/proc/proc-uptime-001.c         |    2 +-
 tools/testing/selftests/proc/proc-uptime-002.c         |    2 +-
 tools/testing/selftests/proc/proc-uptime.h             |    2 +-
 tools/testing/selftests/proc/read.c                    |    2 +-
 9 files changed, 37 insertions(+), 7 deletions(-)
tools/testing/selftests/proc/proc-loadavg-001.c +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
tools/testing/selftests/proc/proc-self-map-files-001.c +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
tools/testing/selftests/proc/proc-self-map-files-002.c +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
tools/testing/selftests/proc/proc-self-syscall.c +15 -0
@@ -1,3 +1,18 @@
+/*
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
 #define _GNU_SOURCE
 #include <unistd.h>
 #include <sys/syscall.h>
tools/testing/selftests/proc/proc-self-wchan.c +15 -0
@@ -1,3 +1,18 @@
+/*
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
tools/testing/selftests/proc/proc-uptime-001.c +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
tools/testing/selftests/proc/proc-uptime-002.c +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
tools/testing/selftests/proc/proc-uptime.h +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
tools/testing/selftests/proc/read.c +1 -1
@@ -1,5 +1,5 @@
 /*
- * Copyright _ 2018 Alexey Dobriyan <[email protected]>
+ * Copyright © 2018 Alexey Dobriyan <[email protected]>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
#5 lore raw

Re: [PATCH v4] proc: fixup copyright sign

Yup, this came through correctly:

Content-Type: text/plain; charset=utf-8

and the patch looks fine too.

Linus