]> diplodocus.org Git - nmh/commitdiff
Fixed dst format escape to return 1 instead of 16, to agree with its
authorDavid Levine <levinedl@acm.org>
Sat, 25 Oct 2014 23:54:50 +0000 (18:54 -0500)
committerDavid Levine <levinedl@acm.org>
Sat, 25 Oct 2014 23:54:50 +0000 (18:54 -0500)
documentation.

sbr/fmt_scan.c

index 08405da..99b8344 100644 (file)
@@ -832,7 +832,7 @@ fmt_scan (struct format *format, charstring_t scanlp, int width, int *dat,
                    value = -1;
            break;
        case FT_LV_DST:
-           value = fmt->f_comp->c_tws->tw_flags & TW_DST;
+           value = fmt->f_comp->c_tws->tw_flags & TW_DST ? 1 : 0;
            break;
        case FT_LS_822DATE:
            str = dasctime (fmt->f_comp->c_tws , TW_ZONE);