diff --git a/gtkedit/ChangeLog b/gtkedit/ChangeLog index e843b3462..0e8092160 100644 --- a/gtkedit/ChangeLog +++ b/gtkedit/ChangeLog @@ -1,3 +1,10 @@ +2000-09-15 Andrew V. Samoilov + + * editcmd.c (edit_delete_macro, edit_(load|save)_macro_cmd): don't + translate keywords written to macro file or macro don't work, at least + for Cyrillic. Made this as separate commit, so, if it seriously breaks + compatibility it's easy to revert it. + 2000-09-15 Andrew V. Samoilov * editcmd.c (edit_save_file): fopen()+fwrite()+fclose() replaced diff --git a/gtkedit/editcmd.c b/gtkedit/editcmd.c index bd69056a7..c2a8c6c5c 100644 --- a/gtkedit/editcmd.c +++ b/gtkedit/editcmd.c @@ -694,7 +694,7 @@ int edit_delete_macro (WEdit * edit, int k) return 1; } for (;;) { - n = fscanf (f, _("key '%d 0': "), &s); + n = fscanf (f, ("key '%d 0': "), &s); if (!n || n == EOF) break; n = 0; @@ -702,7 +702,7 @@ int edit_delete_macro (WEdit * edit, int k) n++; fscanf (f, ";\n"); if (s != k) { - fprintf (g, _("key '%d 0': "), s); + fprintf (g, ("key '%d 0': "), s); for (i = 0; i < n; i++) fprintf (g, "%hd %hd, ", macro[i].command, macro[i].ch); fprintf (g, ";\n"); @@ -738,7 +738,7 @@ int edit_save_macro_cmd (WEdit * edit, struct macro macro[], int n) return 0; f = edit_open_macro_file ("a+"); if (f) { - fprintf (f, _("key '%d 0': "), s); + fprintf (f, ("key '%d 0': "), s); for (i = 0; i < n; i++) fprintf (f, "%hd %hd, ", macro[i].command, macro[i].ch); fprintf (f, ";\n"); @@ -793,7 +793,7 @@ int edit_load_macro_cmd (WEdit * edit, struct macro macro[], int *n, int k) struct macro dummy; do { int u; - u = fscanf (f, _("key '%d 0': "), &s); + u = fscanf (f, ("key '%d 0': "), &s); if (!u || u == EOF) break; if (!saved_macros_loaded)