]> sjero.net Git - wget/commitdiff
ChangeLog entries for NLS progress-bar changes; use correct conditional checks in...
authorMicah Cowan <micah@cowan.name>
Thu, 7 Feb 2008 00:53:46 +0000 (16:53 -0800)
committerMicah Cowan <micah@cowan.name>
Thu, 7 Feb 2008 00:53:46 +0000 (16:53 -0800)
ChangeLog
src/ChangeLog
src/progress.c

index cde46e57bf3e05d321eba196120abed96313321a..3997090f4ce88d00a12038ef0f58041cd1eeaae0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-06  Micah Cowan  <micah@cowan.name>
+
+       * configure.ac (AC_CHECK_FUNCS): Added check for mbtowc.
+
 2008-02-03  Micah Cowan  <micah@cowan.name>
 
        * configure.in: Add checks for wchar.h, wcwidth function (to
index caeb3b77945eca52a30704e530e8385eaa54170e..b446f04f1edcb0baa1da57ebc9974f11f0a0d770 100644 (file)
@@ -1,3 +1,12 @@
+2008-02-06  Micah Cowan  <micah@cowan.name>
+
+       * progress.c (countcols): Use strlen() when mbtowc or wcwidth
+       not available (or not using NLS).
+       * utils.c: Ensure we use single-byte separators when not doing
+       NLS progress-bars.
+       * wget.h: Determine whether to use NLS for progress-bars, based
+       on whether wcwidth and mbtowc are available.
+
 2008-02-03  Micah Cowan  <micah@cowan.name>
 
        * progress.c (create_image): Use number of characters/columns
index 80dab04a1c808102ea58fb5b9734707e7137176b..edb3053058fb96a6971152885ad73bd5e9565936 100644 (file)
@@ -767,7 +767,7 @@ update_speed_ring (struct bar_progress *bp, wgint howmuch, double dltime)
 #endif
 }
 
-#if HAVE_MBTOWC && HAVE_WCWIDTH
+#if USE_NLS_PROGRESS_BAR
 int
 count_cols (const char *mbs)
 {
@@ -795,8 +795,6 @@ count_cols (const char *mbs)
 }
 #else
 # define count_cols(mbs) ((int)(strlen(mbs)))
-# undef  wcwidth
-# define wcwidth(wc) (1)
 #endif
 
 /* Translation note: "ETA" is English-centric, but this must
@@ -813,7 +811,7 @@ get_eta (void)
       int nbytes;
       int ncols;
 
-#if HAVE_WCWIDTH && HAVE_MBTOWC
+#if USE_NLS_PROGRESS_BAR
       eta_trans = _(eta_str);
 #else
       eta_trans = eta_str;