qemu-e2k/hw/misc
Eric Blake 3381466dc9 misc: Avoid UTF-8 in error messages
While most developers are now using UTF-8 environments, it's
harder to guarantee that error messages will be output to
a multibyte locale. Rather than risking error messages that
get corrupted into mojibake when the user runs qemu in a
non-multibyte locale, let's stick to straight ASCII error
messages, rather than assuming that our use of UTF-8 in source
code string constants will work unchanged in other locales.

Found with:
$ LC_ALL=C git grep -l $'".*[\x80-\xff].*"' origin -- '**/*.[ch]' | cat
origin:hw/misc/tmp105.c
origin:hw/misc/tmp421.c

Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20181120203628.2367003-1-eblake@redhat.com>
[lv: added command line to find non ASCII characters]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2018-12-11 18:28:46 +01:00
..
macio macio/pmu: Fix missing vmsd terminator 2018-11-08 12:04:40 +11:00
a9scu.c
applesmc.c
arm11scu.c
arm_integrator_debug.c hw: Do not include "exec/address-spaces.h" if it is not necessary 2018-06-01 14:15:10 +02:00
arm_l2x0.c
arm_sysctl.c
aspeed_scu.c aspeed: Implement write-1-{set, clear} for AST2500 strapping 2018-07-16 17:18:41 +01:00
aspeed_sdmc.c aspeed: add a max_ram_size property to the memory controller 2018-08-16 14:29:58 +01:00
auxbus.c hw/display/xlnx_dp: Move problematic code from instance_init to realize 2018-07-17 13:12:49 +01:00
bcm2835_mbox.c
bcm2835_property.c hw/display/bcm2835_fb: Validate config settings 2018-08-24 13:17:50 +01:00
bcm2835_rng.c
cbus.c Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
debugexit.c hw: debugexit: add read callback 2018-10-02 19:09:03 +02:00
eccmemctl.c
edu.c hw: edu: drop DO_UPCAST 2018-10-19 13:44:12 +02:00
exynos4210_clk.c
exynos4210_pmu.c
exynos4210_rng.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
imx2_wdt.c i.MX: Add code to emulate i.MX2 watchdog IP block 2018-02-09 10:40:29 +00:00
imx6_ccm.c Remove empty statements 2017-12-18 17:07:02 +03:00
imx6_src.c
imx6ul_ccm.c i.MX6UL: Add i.MX6UL specific CCM device 2018-08-16 14:05:28 +01:00
imx7_ccm.c i.MX: Add code to emulate i.MX7 CCM, PMU and ANALOG IP blocks 2018-02-09 10:40:29 +00:00
imx7_gpr.c i.MX: Add implementation of i.MX7 GPR IP block 2018-02-09 10:40:30 +00:00
imx7_snvs.c i.MX: Add code to emulate i.MX7 SNVS IP-block 2018-02-09 10:40:30 +00:00
imx25_ccm.c
imx31_ccm.c
imx_ccm.c
iotkit-secctl.c hw/misc/iotkit-secctl: Wire up registers for controlling MSCs 2018-08-24 13:17:44 +01:00
iotkit-sysctl.c hw/misc/iotkit-sysctl: Implement IoTKit system control element 2018-08-24 13:17:42 +01:00
iotkit-sysinfo.c hw/misc/iotkit-sysinfo: Implement IoTKit system information block 2018-08-24 13:17:43 +01:00
ivshmem.c ivshmem: fix memory backend leak 2018-11-06 21:35:05 +01:00
Makefile.objs hyperv: factor out arch-independent API into hw/hyperv 2018-10-19 13:44:13 +02:00
max111x.c
milkymist-hpdmc.c
milkymist-pfpu.c
mips_cmgcr.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
mips_cpc.c
mips_itu.c hw/mips: Use the IEC binary prefix definitions 2018-07-02 15:41:16 +02:00
mos6522.c mos6522: expose mos6522_update_irq() through MOS6522DeviceClass 2018-06-16 16:32:33 +10:00
mps2-fpgaio.c hw/misc/mps2-fpgaio: Implement PSCNTR and COUNTER 2018-08-24 13:17:40 +01:00
mps2-scc.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
msf2-sysreg.c msf2: Microsemi Smartfusion2 System Register block 2017-09-21 16:36:56 +01:00
mst_fpga.c
omap_clk.c Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
omap_gpmc.c Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
omap_l4.c Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
omap_sdrc.c Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
omap_tap.c Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
pc-testdev.c pc-testdev: use HTTPS git URL 2018-11-12 11:26:02 +00:00
pca9552.c misc: add pca9552 LED blinker model 2018-06-08 13:15:32 +01:00
pci-testdev.c pci-testdev: add optional memory bar 2018-11-05 13:24:02 -05:00
puv3_pm.c
pvpanic.c check: Only test pvpanic when it is compiled in 2018-08-21 19:52:16 +02:00
sga.c hw/misc/sga: Use the correct ISA include 2018-06-01 14:15:10 +02:00
slavio_misc.c
stm32f2xx_syscfg.c maint: Fix macros with broken 'do/while(0); ' usage 2018-01-16 14:54:52 +01:00
tmp105.c misc: Avoid UTF-8 in error messages 2018-12-11 18:28:46 +01:00
tmp105.h
tmp421.c misc: Avoid UTF-8 in error messages 2018-12-11 18:28:46 +01:00
trace-events hw/misc/tz-msc: Model TrustZone Master Security Controller 2018-08-24 13:17:43 +01:00
tz-mpc.c hw/misc/tz-mpc: Zero the LUT on initialization, not just reset 2018-07-30 14:52:15 +01:00
tz-msc.c hw/misc/tz-msc: Model TrustZone Master Security Controller 2018-08-24 13:17:43 +01:00
tz-ppc.c hw/misc/tz-ppc: Model TrustZone peripheral protection controller 2018-03-02 11:03:45 +00:00
unimp.c hw/misc/unimp: Move struct to header file 2018-03-02 11:03:45 +00:00
vmcoreinfo.c fw_cfg: import & use linux/qemu_fw_cfg.h 2018-08-23 18:46:25 +02:00
zynq_slcr.c maint: Fix macros with broken 'do/while(0); ' usage 2018-01-16 14:54:52 +01:00
zynq-xadc.c