]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
src: remove utf-8 character in printf lines
authorFlorian Westphal <fw@strlen.de>
Wed, 13 Mar 2024 13:17:55 +0000 (14:17 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 13 Mar 2024 13:44:41 +0000 (14:44 +0100)
replace "‘" (UTF-8, 0xe280 0x98) with "'" (ASCII 0x27).

Signed-off-by: Florian Westphal <fw@strlen.de>
src/cmd.c
src/evaluate.c

index 21533e0eaaad603c0a964d8b974c74fe5d500c09..14cb1b5172cd1fc72202b4079e40d790d9d976d6 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -41,7 +41,7 @@ static int nft_cmd_enoent_table(struct netlink_ctx *ctx, const struct cmd *cmd,
        if (!table)
                return 0;
 
-       netlink_io_error(ctx, loc, "%s; did you mean table ‘%s’ in family %s?",
+       netlink_io_error(ctx, loc, "%s; did you mean table '%s' in family %s?",
                         strerror(ENOENT), table->handle.table.name,
                         family2str(table->handle.family));
        return 1;
@@ -57,7 +57,7 @@ static int table_fuzzy_check(struct netlink_ctx *ctx, const struct cmd *cmd,
        if (strcmp(cmd->handle.table.name, table->handle.table.name) ||
            cmd->handle.family != table->handle.family) {
                netlink_io_error(ctx, &cmd->handle.table.location,
-                                "%s; did you mean table ‘%s’ in family %s?",
+                                "%s; did you mean table '%s' in family %s?",
                                 strerror(ENOENT), table->handle.table.name,
                                 family2str(table->handle.family));
                return 1;
@@ -86,7 +86,7 @@ static int nft_cmd_enoent_chain(struct netlink_ctx *ctx, const struct cmd *cmd,
        if (!chain)
                return 0;
 
-       netlink_io_error(ctx, loc, "%s; did you mean chain ‘%s’ in table %s ‘%s’?",
+       netlink_io_error(ctx, loc, "%s; did you mean chain '%s' in table %s '%s'?",
                         strerror(ENOENT), chain->handle.chain.name,
                         family2str(table->handle.family),
                         table->handle.table.name);
@@ -116,7 +116,7 @@ static int nft_cmd_enoent_rule(struct netlink_ctx *ctx, const struct cmd *cmd,
                return 0;
 
        if (strcmp(cmd->handle.chain.name, chain->handle.chain.name)) {
-               netlink_io_error(ctx, loc, "%s; did you mean chain ‘%s’ in table %s ‘%s’?",
+               netlink_io_error(ctx, loc, "%s; did you mean chain '%s' in table %s '%s'?",
                                 strerror(ENOENT),
                                 chain->handle.chain.name,
                                 family2str(table->handle.family),
@@ -147,7 +147,7 @@ static int nft_cmd_enoent_set(struct netlink_ctx *ctx, const struct cmd *cmd,
        if (!set)
                return 0;
 
-       netlink_io_error(ctx, loc, "%s; did you mean %s ‘%s’ in table %s ‘%s’?",
+       netlink_io_error(ctx, loc, "%s; did you mean %s '%s' in table %s '%s'?",
                         strerror(ENOENT),
                         set_is_map(set->flags) ? "map" : "set",
                         set->handle.set.name,
@@ -176,7 +176,7 @@ static int nft_cmd_enoent_obj(struct netlink_ctx *ctx, const struct cmd *cmd,
        if (!obj)
                return 0;
 
-       netlink_io_error(ctx, loc, "%s; did you mean obj ‘%s’ in table %s ‘%s’?",
+       netlink_io_error(ctx, loc, "%s; did you mean obj '%s' in table %s '%s'?",
                         strerror(ENOENT), obj->handle.obj.name,
                         family2str(obj->handle.family),
                         table->handle.table.name);
@@ -205,7 +205,7 @@ static int nft_cmd_enoent_flowtable(struct netlink_ctx *ctx,
        if (!ft)
                return 0;
 
-       netlink_io_error(ctx, loc, "%s; did you mean flowtable ‘%s’ in table %s ‘%s’?",
+       netlink_io_error(ctx, loc, "%s; did you mean flowtable '%s' in table %s '%s'?",
                         strerror(ENOENT), ft->handle.flowtable.name,
                         family2str(ft->handle.family),
                         table->handle.table.name);
index bc8ddc040a5828b39b9b83c045c452e826fc7f93..8196d3d314dcab3a73cd0492b8e2400e84b336dc 100644 (file)
@@ -256,7 +256,7 @@ static int table_not_found(struct eval_ctx *ctx)
                                 "%s", strerror(ENOENT));
 
        return cmd_error(ctx, &ctx->cmd->handle.table.location,
-                        "%s; did you mean table ‘%s’ in family %s?",
+                        "%s; did you mean table '%s' in family %s?",
                         strerror(ENOENT), table->handle.table.name,
                         family2str(table->handle.family));
 }
@@ -272,7 +272,7 @@ static int chain_not_found(struct eval_ctx *ctx)
                                 "%s", strerror(ENOENT));
 
        return cmd_error(ctx, &ctx->cmd->handle.chain.location,
-                        "%s; did you mean chain ‘%s’ in table %s ‘%s’?",
+                        "%s; did you mean chain '%s' in table %s '%s'?",
                         strerror(ENOENT), chain->handle.chain.name,
                         family2str(chain->handle.family),
                         table->handle.table.name);
@@ -289,7 +289,7 @@ static int set_not_found(struct eval_ctx *ctx, const struct location *loc,
                return cmd_error(ctx, loc, "%s", strerror(ENOENT));
 
        return cmd_error(ctx, loc,
-                        "%s; did you mean %s ‘%s’ in table %s ‘%s’?",
+                        "%s; did you mean %s '%s' in table %s '%s'?",
                         strerror(ENOENT),
                         set_is_map(set->flags) ? "map" : "set",
                         set->handle.set.name,
@@ -308,7 +308,7 @@ static int flowtable_not_found(struct eval_ctx *ctx, const struct location *loc,
                return cmd_error(ctx, loc, "%s", strerror(ENOENT));
 
        return cmd_error(ctx, loc,
-                       "%s; did you mean flowtable ‘%s’ in table %s ‘%s’?",
+                       "%s; did you mean flowtable '%s' in table %s '%s'?",
                        strerror(ENOENT), ft->handle.flowtable.name,
                        family2str(ft->handle.family),
                        table->handle.table.name);
@@ -3290,7 +3290,7 @@ static int stmt_evaluate_meter(struct eval_ctx *ctx, struct stmt *stmt)
        existing_set = set_cache_find(table, stmt->meter.name);
        if (existing_set)
                return cmd_error(ctx, &stmt->location,
-                                "%s; meter ‘%s’ overlaps an existing %s ‘%s’ in family %s",
+                                "%s; meter '%s' overlaps an existing %s '%s' in family %s",
                                 strerror(EEXIST),
                                 stmt->meter.name,
                                 set_is_map(existing_set->flags) ? "map" : "set",
@@ -5652,7 +5652,7 @@ static int obj_not_found(struct eval_ctx *ctx, const struct location *loc,
                return cmd_error(ctx, loc, "%s", strerror(ENOENT));
 
        return cmd_error(ctx, loc,
-                        "%s; did you mean obj ‘%s’ in table %s ‘%s’?",
+                        "%s; did you mean obj '%s' in table %s '%s'?",
                         strerror(ENOENT), obj->handle.obj.name,
                                 family2str(obj->handle.family),
                                 table->handle.table.name);