summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2003-04-27 17:34:14 -0400
committerTheodore Ts'o <tytso@mit.edu>2003-04-27 17:34:14 -0400
commit6177c41f99a34b5e4f84a17ca742724d211a0ca8 (patch)
tree4181fa2bcb0d17972fae1bab1b108fcd81c6b8c8
parente50fb59784ef81535fe56902c0b95db04b86f669 (diff)
downloade2fsprogs-6177c41f99a34b5e4f84a17ca742724d211a0ca8.tar.gz
Fixed NLS support for message abbreviations in e2fsck.
-rw-r--r--e2fsck/ChangeLog5
-rw-r--r--e2fsck/message.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog
index 9d1816bc..a0a4854b 100644
--- a/e2fsck/ChangeLog
+++ b/e2fsck/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-27 Theodore Ts'o <tytso@mit.edu>
+
+ * message.c (expand_at_expression): Fixed NLS support for message
+ abbreviations.
+
2003-04-21 Theodore Ts'o <tytso@mit.edu>
* Release of E2fsprogs 1.33
diff --git a/e2fsck/message.c b/e2fsck/message.c
index 6c81eeb2..059e2949 100644
--- a/e2fsck/message.c
+++ b/e2fsck/message.c
@@ -218,12 +218,12 @@ static _INLINE_ void expand_at_expression(e2fsck_t ctx, char ch,
break;
}
if (*cpp) {
- str = (*cpp) + 1;
+ str = _(*cpp) + 1;
if (*first && islower(*str)) {
*first = 0;
fputc(toupper(*str++), stdout);
}
- print_e2fsck_message(ctx, _(str), pctx, *first);
+ print_e2fsck_message(ctx, str, pctx, *first);
} else
printf("@%c", ch);
}