~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to lib/string/bsd_vsnwprintf.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-10-23 15:32:00 UTC
  • mfrom: (1.1.2 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081023153200-gc1bfx89hj35c799
Tags: 2008.10.10-123053-2
* Correcting typo in dh_installinit call.
* Downgrading depends on module-assistant to recommends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
743
743
         flags |= GROUPING;
744
744
         thousands_sep = (wchar_t) *(localeconv()->thousands_sep);
745
745
         grouping = localeconv()->grouping;
 
746
 
 
747
         /*
 
748
          * Grouping should not begin with 0, but it nevertheless
 
749
          * does (see bug 281072) and makes the formatting code
 
750
          * behave badly, so we fix it up.
 
751
          */
 
752
 
 
753
         if (grouping != NULL && *grouping == '\0') {
 
754
            static char g[] = { CHAR_MAX, '\0' };
 
755
            grouping = g;
 
756
         }
746
757
         goto rflag;
747
758
      case '.':
748
759
         if ((ch = *fmt++) == '*') {