about summary refs log tree commit diff
path: root/stdio-common/printf_fp.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/printf_fp.c')
-rw-r--r--stdio-common/printf_fp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/stdio-common/printf_fp.c b/stdio-common/printf_fp.c
index 9112d467c5..7ab46f1ae2 100644
--- a/stdio-common/printf_fp.c
+++ b/stdio-common/printf_fp.c
@@ -241,6 +241,9 @@ __printf_fp (FILE *fp,
 		  strlen (_NL_CURRENT (LC_MONETARY, MON_DECIMAL_POINT))) <= 0)
 	decimal = (wchar_t) *_NL_CURRENT (LC_MONETARY, MON_DECIMAL_POINT);
     }
+  /* Give default value.  */
+  if (decimal == L'\0')
+    decimal = L'.';
 
 
   if (info->group)
@@ -249,7 +252,7 @@ __printf_fp (FILE *fp,
 	grouping = _NL_CURRENT (LC_NUMERIC, GROUPING);
       else
 	grouping = _NL_CURRENT (LC_MONETARY, MON_GROUPING);
-	
+
       if (*grouping <= 0 || *grouping == CHAR_MAX)
 	grouping = NULL;
       else
@@ -273,7 +276,7 @@ __printf_fp (FILE *fp,
 		thousands_sep = (wchar_t) *_NL_CURRENT (LC_MONETARY,
 							MON_THOUSANDS_SEP);
 	    }
-	    
+
 	  if (thousands_sep == L'\0')
 	    grouping = NULL;
 	}