Leonard Crestez
46d10a0943
scripts/gdb: lx-dmesg: use explicit encoding=utf8 errors=replace
...
Use errors=replace because it is never desirable for lx-dmesg to fail on
string decoding errors, not even if the log buffer is corrupt and we
show incorrect info.
The kernel will sometimes print utf8, for example the copyright symbol
from jffs2. In order to make this work specify 'utf8' everywhere
because python2 otherwise defaults to 'ascii'.
In theory the second errors='replace' is not be required because
everything that can be decoded as utf8 should also be encodable back to
utf8. But it's better to be extra safe here. It's worth noting that
this is definitely not true for encoding='ascii', unknown characters are
replaced with U+FFFD REPLACEMENT CHARACTER and they fail to encode back
to ascii.
Link: http://lkml.kernel.org/r/acee067f3345954ed41efb77b80eebdc038619c6.1498481469.git.leonard.crestez@nxp.com
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Kieran Bingham <kieran@ksquared.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-07-12 16:26:01 -07:00
..
basic
coccinelle
drm: Introduce drm_property_blob_{get,put}()
2017-02-28 16:16:46 +01:00
dtc
Kbuild misc updates for 4.13
2017-07-07 15:09:09 -07:00
gcc-plugins
randstruct: Whitelist NIU struct page overloading
2017-06-22 16:21:43 -07:00
gdb
scripts/gdb: lx-dmesg: use explicit encoding=utf8 errors=replace
2017-07-12 16:26:01 -07:00
genksyms
genksyms: add printf format attribute to error_with_pos()
2017-06-06 01:22:48 +09:00
kconfig
Kbuild misc updates for 4.13
2017-07-07 15:09:09 -07:00
ksymoops
Fix dead URLs to ftp.kernel.org
2017-03-28 16:16:52 +02:00
mod
kbuild: Consolidate header generation from ASM offset information
2017-04-13 05:43:37 +09:00
package
Kbuild misc updates for 4.12
2017-05-10 20:41:43 -07:00
selinux
doc: ReSTify SELinux.txt
2017-05-18 10:31:30 -06:00
tracing
.gitignore
Docs: clean up some DocBook loose ends
2017-06-23 14:17:38 -06:00
adjust_autoksyms.sh
kbuild: fix scripts/adjust_autoksyms.sh* for the no modules case
2016-12-11 22:30:10 +01:00
asn1_compiler.c
bloat-o-meter
scripts/bloat-o-meter: compile .NUMBER regex
2016-12-12 18:55:06 -08:00
bootgraph.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
check_00index.sh
check_extable.sh
checkincludes.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
checkkconfigsymbols.py
checkkconfigsymbols.py: support Kconfig's 'imply' statement
2017-02-03 11:49:06 +01:00
checkpatch.pl
checkpatch: improve multi-line alignment test
2017-07-10 16:32:35 -07:00
checkstack.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
checksyscalls.sh
kbuild: speed up checksyscalls.sh
2017-06-10 01:15:36 +09:00
checkversion.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
cleanfile
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
cleanpatch
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
coccicheck
config
conmakehash.c
const_structs.checkpatch
decode_stacktrace.sh
decodecode
depmod.sh
diffconfig
export_report.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
extract-cert.c
extract-ikconfig
extract-module-sig.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
extract-sys-certs.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
extract-vmlinux
extract_xc3028.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
faddr2line
gcc-goto.sh
gcc-ld
gcc-plugin.sh
gcc-version.sh
gcc-x86_32-has-stack-protector.sh
gcc-x86_64-has-stack-protector.sh
gen_initramfs_list.sh
Kbuild misc updates for 4.13
2017-07-07 15:09:09 -07:00
get_dvb_firmware
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
get_maintainer.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
gfp-translate
headerdep.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
headers.sh
headers_check.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
headers_install.sh
insert-sys-cert.c
kallsyms.c
kbuild: modversions: add infrastructure for emitting relative CRCs
2017-02-03 08:28:25 -08:00
Kbuild.include
kbuild: Add __cc-option macro
2017-06-25 12:47:55 +09:00
kernel-doc
Kbuild misc updates for 4.13
2017-07-07 15:09:09 -07:00
ld-version.sh
Lindent
scripts/Lindent: clean up and optimize
2017-02-22 16:41:26 -08:00
link-vmlinux.sh
kbuild: handle libs-y archives separately from built-in.o archives
2017-06-30 09:03:03 +09:00
Makefile
Docs: clean up some DocBook loose ends
2017-06-23 14:17:38 -06:00
Makefile.asm-generic
kbuild: replace genhdr-y with generated-y
2017-06-22 08:55:21 +09:00
Makefile.build
kbuild: thin archives use P option to ar
2017-06-30 09:03:03 +09:00
Makefile.clean
Makefile.dtbinst
kbuild: dtbinst: remove unnecessary __dtbs_install_prep target
2017-05-08 07:26:06 +09:00
Makefile.extrawarn
kbuild: drop -Wno-unknown-warning-option from clang options
2017-04-23 16:09:15 +09:00
Makefile.fwinst
Makefile.gcc-plugins
gcc-plugins: Add the randstruct plugin
2017-06-22 16:15:45 -07:00
Makefile.headersinst
kbuild: fix header installation under fakechroot environment
2017-06-22 08:34:34 +09:00
Makefile.help
Makefile.host
kbuild: Add __cc-option macro
2017-06-25 12:47:55 +09:00
Makefile.kasan
kasan: turn on -fsanitize-address-use-after-scope
2016-12-12 18:55:09 -08:00
Makefile.lib
devicetree: Move include prefixes from arch to separate directory
2017-05-18 23:55:48 -07:00
Makefile.modbuiltin
Makefile.modinst
Makefile.modpost
Makefile.modsign
Makefile.ubsan
makelst
markup_oops.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
mkcompile_h
scripts/mkcompile_h: Remove trailing spaces from compiler version
2017-06-19 22:48:15 +09:00
mkmakefile
mksysmap
mkuboot.sh
mkversion
module-common.lds
module: set .init_array alignment to 8
2017-03-13 09:40:28 -07:00
namespace.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
objdiff
scripts: objdiff: Ignore debug info when comparing
2017-03-11 11:13:38 +09:00
patch-kernel
pnmtologo.c
profile2linkerlist.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
prune-kernel
recordmcount.c
ftrace: Allow for function tracing to record init functions on boot up
2017-03-24 20:51:49 -04:00
recordmcount.h
recordmcount.pl
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
setlocalversion
show_delta
sign-file.c
sign-file: fix build error in sign-file.c with libressl
2017-02-10 12:43:47 +11:00
sortextable.c
sortextable.h
spelling.txt
scripts/spelling.txt: add a bunch more spelling mistakes
2017-07-06 16:24:30 -07:00
stackdelta
scripts: Switch to more portable Perl shebang
2017-05-14 11:20:44 +09:00
stackusage
tags.sh
tags: honor COMPILED_SOURCE with apart output directory
2017-06-06 08:42:34 +09:00
unifdef.c
ver_linux
ver_linux: Use /usr/bin/awk instead of /bin/awk
2017-04-08 18:03:42 +02:00
xen-hypercalls.sh
xz_wrap.sh