ln -sr '' F no longer segfaults. Now works as expected.
[bug introduced with the --relative feature in coreutils-8.16]
+ numfmt now handles blanks correctly in all unibyte locales. Previously
+ in locales where character 0xA0 is a blank, numfmt would mishandle it.
+ [bug introduced when numfmt was added in coreutils-8.21]
+
ptx --format long option parsing no longer falls through into the --help case.
[bug introduced in TEXTUTILS-1_22i]
#include "mbsalign.h"
#include "argmatch.h"
+#include "c-ctype.h"
#include "error.h"
#include "quote.h"
#include "system.h"
*negative = false;
*endptr = (char *) input_str;
- while (*endptr && isdigit (**endptr))
+ while (*endptr && c_isdigit (**endptr))
{
int digit = (**endptr) - '0';
- /* can this happen in some strange locale? */
- if (digit < 0 || digit > 9)
- return SSE_INVALID_NUMBER;
-
if (digits > MAX_UNSCALED_DIGITS)
e = SSE_OK_PRECISION_LOSS;
/* process suffix. */
/* Skip any blanks between the number and suffix. */
- while (isblank (**endptr))
+ while (isblank (to_uchar (**endptr)))
(*endptr)++;
if (!valid_suffix (**endptr))
/* Skip white space - always. */
char *p = text;
- while (*p && isblank (*p))
+ while (*p && isblank (to_uchar (*p)))
++p;
const unsigned int skip_count = text - p;
else
while (*ptr && fields--)
{
- while (*ptr && isblank (*ptr))
+ while (*ptr && isblank (to_uchar (*ptr)))
++ptr;
- while (*ptr && !isblank (*ptr))
+ while (*ptr && !isblank (to_uchar (*ptr)))
++ptr;
}
return ptr;