(my_strftime): Provide wide era string when requested.
authordrepper <drepper>
Wed, 29 Dec 1999 17:51:25 +0000 (17:51 +0000)
committerdrepper <drepper>
Wed, 29 Dec 1999 17:51:25 +0000 (17:51 +0000)
time/strftime.c

index d53fdfe..a2ed590 100644 (file)
@@ -834,8 +834,8 @@ my_strftime (s, maxsize, format, tp ut_argument)
              if (era)
                {
 # ifdef COMPILE_WIDE
-                 size_t len = strlen (era->era_name);
-                 cpy (len, era->era_name);
+                 size_t len = wcslen (era->era_wname);
+                 cpy (len, era->era_wname);
 # else
                  size_t len = strlen (era->era_name);
                  cpy (len, era->era_name);