~serge-hallyn/ubuntu/raring/libvirt/libvirt-hugepages

« back to all changes in this revision

Viewing changes to gnulib/lib/mbrtowc.c

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-05-13 15:44:12 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20120513154412-fgmn5sxqdzgnzlx3
Tags: 0.9.12-0ubuntu1
* New upstream version:
  * Synchronize with debian packaging:
    - debian/control: Update build depends.
    - debian/libvirt-bin.postrm: Cleanup /var/log/libvirt
      on purge.
    - Bump standards verson (no changes).
    - debian/patches/Don-t-fail-if-we-can-t-setup-avahi.patch: Added
  * Dropped patches:
    - debian/patches/Debianize-libvirt-guests.patch
    - debian/patches/rewrite-lxc-controller-eof-handling-yet-again
    - debian/patches/ubuntu/libnl13.patch
    - debian/patches/ubuntu/fix-lxc-startup-error.patch
    - debian/patches/ubuntu/fix-bridge-fd.patch
    - debian/patches/ubuntu/skip-labelling-network-disks.patch
    - debian/patches/ubuntu/xen-xend-shutdown-detection.patch
    - debian/patches/ubuntu/xen-config-no-vfb-for-hvm.patch
    - debian/patches/debian/Disable-daemon-start-test.patch
    - debian/patches/debian/Disable-gnulib-s-test-nonplocking-pipe.sh.patch
    - debian/patches/ubuntu/9006-default-config-test-case.patch
    - debian/patches/fix-block-migration.patch
    - debian/patches/ubuntu/9022-qemu-unescape-HMP-commands-before-converting-them-to.patch
    - debian/patches/ubuntu/9023-qemu-change-rbd-auth_supported-separation-character-.patch
    - debian/patches/ubuntu/9024-qemu-allow-snapshotting-of-sheepdog-and-rbd-disks.patch
    - debian/patches/9025-qemu-change-rbd-auth_supported-separation-character-.patch
    - debian/patches/ubuntu/arm-gcc-workaround.patch
  * Rediffed:
    - debian/patches/Allow-libvirt-group-to-access-the-socket.patch
    - debian/patches/Disable-failing-virnetsockettest.patch
    - debian/patches/dnsmasq-as-priv-user
    - debian/patches/9002-better_default_uri_virsh.patch
  * debian/control: Add libnl-route-3-dev ass a build depends.
  * debian/patches/libnl3-build-fix.patch: Fix build with libnl3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- buffer-read-only: t -*- vi: set ro: */
2
 
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3
1
/* Convert multibyte character to wide character.
4
 
   Copyright (C) 1999-2002, 2005-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 1999-2002, 2005-2012 Free Software Foundation, Inc.
5
3
   Written by Bruno Haible <bruno@clisp.org>, 2008.
6
4
 
7
5
   This program is free software: you can redistribute it and/or modify
130
128
      {
131
129
        const char *encoding = locale_charset ();
132
130
 
133
 
        if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0, 0))
 
131
        if (STREQ_OPT (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0, 0))
134
132
          {
135
133
            /* Cf. unistr/u8-mblen.c.  */
136
134
            unsigned char c = (unsigned char) p[0];
187
185
        /* As a reference for this code, you can use the GNU libiconv
188
186
           implementation.  Look for uses of the RET_TOOFEW macro.  */
189
187
 
190
 
        if (STREQ (encoding, "EUC-JP", 'E', 'U', 'C', '-', 'J', 'P', 0, 0, 0))
 
188
        if (STREQ_OPT (encoding,
 
189
                       "EUC-JP", 'E', 'U', 'C', '-', 'J', 'P', 0, 0, 0))
191
190
          {
192
191
            if (m == 1)
193
192
              {
210
209
              }
211
210
            goto invalid;
212
211
          }
213
 
        if (STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0)
214
 
            || STREQ (encoding, "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0)
215
 
            || STREQ (encoding, "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0))
 
212
        if (STREQ_OPT (encoding,
 
213
                       "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0)
 
214
            || STREQ_OPT (encoding,
 
215
                          "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0)
 
216
            || STREQ_OPT (encoding,
 
217
                          "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0))
216
218
          {
217
219
            if (m == 1)
218
220
              {
223
225
              }
224
226
            goto invalid;
225
227
          }
226
 
        if (STREQ (encoding, "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0))
 
228
        if (STREQ_OPT (encoding,
 
229
                       "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0))
227
230
          {
228
231
            if (m == 1)
229
232
              {
241
244
              }
242
245
            goto invalid;
243
246
          }
244
 
        if (STREQ (encoding, "GB18030", 'G', 'B', '1', '8', '0', '3', '0', 0, 0))
 
247
        if (STREQ_OPT (encoding,
 
248
                       "GB18030", 'G', 'B', '1', '8', '0', '3', '0', 0, 0))
245
249
          {
246
250
            if (m == 1)
247
251
              {
274
278
              }
275
279
            goto invalid;
276
280
          }
277
 
        if (STREQ (encoding, "SJIS", 'S', 'J', 'I', 'S', 0, 0, 0, 0, 0))
 
281
        if (STREQ_OPT (encoding, "SJIS", 'S', 'J', 'I', 'S', 0, 0, 0, 0, 0))
278
282
          {
279
283
            if (m == 1)
280
284
              {