984f77
From f27568d24a29590b34fec3a96a5b3b5d290ba3d8 Mon Sep 17 00:00:00 2001
984f77
From: David Tardon <dtardon@redhat.com>
984f77
Date: Fri, 24 Jun 2022 09:59:44 +0200
984f77
Subject: [PATCH] =?UTF-8?q?tree-wide:=20allow=20ASCII=20fallback=20for=20?=
984f77
 =?UTF-8?q?=E2=80=A6=20in=20logs?=
984f77
MIME-Version: 1.0
984f77
Content-Type: text/plain; charset=UTF-8
984f77
Content-Transfer-Encoding: 8bit
984f77
984f77
(cherry picked from commit 28e5e1e97f47067bce190ea6b3404907d63e4320)
984f77
984f77
Related: #2093479
984f77
---
984f77
 src/core/manager.c      | 5 +++--
984f77
 src/shared/vlan-util.c  | 3 ++-
984f77
 src/sysusers/sysusers.c | 5 +++--
984f77
 src/tmpfiles/tmpfiles.c | 6 +++---
984f77
 4 files changed, 11 insertions(+), 8 deletions(-)
984f77
984f77
diff --git a/src/core/manager.c b/src/core/manager.c
984f77
index 845c26f498..5873e5b6d7 100644
984f77
--- a/src/core/manager.c
984f77
+++ b/src/core/manager.c
984f77
@@ -49,6 +49,7 @@
984f77
 #include "io-util.h"
984f77
 #include "label.h"
984f77
 #include "locale-setup.h"
984f77
+#include "locale-util.h"
984f77
 #include "log.h"
984f77
 #include "macro.h"
984f77
 #include "manager.h"
984f77
@@ -1404,7 +1405,7 @@ static void manager_coldplug(Manager *m) {
984f77
 
984f77
         assert(m);
984f77
 
984f77
-        log_debug("Invoking unit coldplug() handlers…");
984f77
+        log_debug("Invoking unit coldplug() handlers%s", special_glyph(ELLIPSIS));
984f77
 
984f77
         /* Let's place the units back into their deserialized state */
984f77
         HASHMAP_FOREACH_KEY(u, k, m->units, i) {
984f77
@@ -1426,7 +1427,7 @@ static void manager_catchup(Manager *m) {
984f77
 
984f77
         assert(m);
984f77
 
984f77
-        log_debug("Invoking unit catchup() handlers…");
984f77
+        log_debug("Invoking unit catchup() handlers%s", special_glyph(ELLIPSIS));
984f77
 
984f77
         /* Let's catch up on any state changes that happened while we were reloading/reexecing */
984f77
         HASHMAP_FOREACH_KEY(u, k, m->units, i) {
984f77
diff --git a/src/shared/vlan-util.c b/src/shared/vlan-util.c
984f77
index 400994a354..9301dacbe2 100644
984f77
--- a/src/shared/vlan-util.c
984f77
+++ b/src/shared/vlan-util.c
984f77
@@ -1,6 +1,7 @@
984f77
 /* SPDX-License-Identifier: LGPL-2.1+ */
984f77
 
984f77
 #include "conf-parser.h"
984f77
+#include "locale-util.h"
984f77
 #include "parse-util.h"
984f77
 #include "string-util.h"
984f77
 #include "vlan-util.h"
984f77
@@ -67,7 +68,7 @@ int config_parse_vlanid(
984f77
 
984f77
         r = parse_vlanid(rvalue, id);
984f77
         if (r == -ERANGE) {
984f77
-                log_syntax(unit, LOG_ERR, filename, line, r, "VLAN identifier outside of valid range 0…4094, ignoring: %s", rvalue);
984f77
+                log_syntax(unit, LOG_ERR, filename, line, r, "VLAN identifier outside of valid range 0%s4094, ignoring: %s", special_glyph(ELLIPSIS), rvalue);
984f77
                 return 0;
984f77
         }
984f77
         if (r < 0) {
984f77
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c
984f77
index a374ebaaf4..f547388151 100644
984f77
--- a/src/sysusers/sysusers.c
984f77
+++ b/src/sysusers/sysusers.c
984f77
@@ -12,6 +12,7 @@
984f77
 #include "format-util.h"
984f77
 #include "fs-util.h"
984f77
 #include "hashmap.h"
984f77
+#include "locale-util.h"
984f77
 #include "pager.h"
984f77
 #include "path-util.h"
984f77
 #include "selinux-util.h"
984f77
@@ -1890,13 +1891,13 @@ static int read_config_files(char **args) {
984f77
 
984f77
         STRV_FOREACH(f, files)
984f77
                 if (p && path_equal(*f, p)) {
984f77
-                        log_debug("Parsing arguments at position \"%s\"…", *f);
984f77
+                        log_debug("Parsing arguments at position \"%s\"%s", *f, special_glyph(ELLIPSIS));
984f77
 
984f77
                         r = parse_arguments(args);
984f77
                         if (r < 0)
984f77
                                 return r;
984f77
                 } else {
984f77
-                        log_debug("Reading config file \"%s\"…", *f);
984f77
+                        log_debug("Reading config file \"%s\"%s", *f, special_glyph(ELLIPSIS));
984f77
 
984f77
                         /* Just warn, ignore result otherwise */
984f77
                         (void) read_config_file(*f, true);
984f77
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
984f77
index b3c2aac746..8da525120b 100644
984f77
--- a/src/tmpfiles/tmpfiles.c
984f77
+++ b/src/tmpfiles/tmpfiles.c
984f77
@@ -2654,7 +2654,7 @@ static int read_config_file(char **config_dirs, const char *fn, bool ignore_enoe
984f77
         assert(fn);
984f77
 
984f77
         if (streq(fn, "-")) {
984f77
-                log_debug("Reading config from stdin…");
984f77
+                log_debug("Reading config from stdin%s", special_glyph(ELLIPSIS));
984f77
                 fn = "<stdin>";
984f77
                 f = stdin;
984f77
         } else {
984f77
@@ -2667,7 +2667,7 @@ static int read_config_file(char **config_dirs, const char *fn, bool ignore_enoe
984f77
 
984f77
                         return log_error_errno(r, "Failed to open '%s': %m", fn);
984f77
                 }
984f77
-                log_debug("Reading config file \"%s\"…", fn);
984f77
+                log_debug("Reading config file \"%s\"%s", fn, special_glyph(ELLIPSIS));
984f77
                 f = _f;
984f77
         }
984f77
 
984f77
@@ -2765,7 +2765,7 @@ static int read_config_files(char **config_dirs, char **args, bool *invalid_conf
984f77
 
984f77
         STRV_FOREACH(f, files)
984f77
                 if (p && path_equal(*f, p)) {
984f77
-                        log_debug("Parsing arguments at position \"%s\"…", *f);
984f77
+                        log_debug("Parsing arguments at position \"%s\"%s", *f, special_glyph(ELLIPSIS));
984f77
 
984f77
                         r = parse_arguments(config_dirs, args, invalid_config);
984f77
                         if (r < 0)