[SYSTEM] Apply patch from SUSE.
authorAlexey Gladkov <legion@altlinux.org>
Sun, 28 Jan 2007 19:20:12 +0000 (22:20 +0300)
committerAlexey Gladkov <legion@altlinux.org>
Sun, 28 Jan 2007 19:20:12 +0000 (22:20 +0300)
Apply kbd-1.12-loadkeys-repstdout.diff patch from SUSE distribution.
Patch fix output then --mktable option specified.

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
src/loadkeys.y

index d17ebfd..3709e1c 100644 (file)
@@ -537,7 +537,7 @@ open_include(char *s) {
 
        if (verbose)
                /* start reading include file */
-               fprintf(stderr, _("switching to %s\n"), s);
+               fprintf(stdout, _("switching to %s\n"), s);
 
        lk_push();
 
@@ -613,8 +613,8 @@ yywrap(void) {
        */
       gotf:
        filename = xstrdup(pathname);
-       if (!quiet)
-               fprintf(stderr, _("Loading %s\n"), pathname);
+       if (!quiet && !optm)
+               fprintf(stdout, _("Loading %s\n"), pathname);
        if (first_file) {
                yyin = f;
                first_file = 0;