~ubuntu-branches/ubuntu/vivid/libidn/vivid

« back to all changes in this revision

Viewing changes to lib/idna.c

  • Committer: Bazaar Package Importer
  • Author(s): Simon Josefsson, Simon Josefsson
  • Date: 2009-06-08 11:59:06 UTC
  • mfrom: (1.2.12 upstream) (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090608115906-6k6b5vy645zv0r77
Tags: 1.15-1
[ Simon Josefsson ]
* Let install-info decide where to put libidn.info.
* New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#include "idna.h"
32
32
 
 
33
/* Get c_strcasecmp. */
 
34
#include <c-strcase.h>
 
35
 
33
36
#define DOTP(c) ((c) == 0x002E || (c) == 0x3002 ||      \
34
37
                 (c) == 0xFF0E || (c) == 0xFF61)
35
38
 
363
366
   * step 3, using a case-insensitive ASCII comparison.
364
367
   */
365
368
 
366
 
  if (strcasecmp (utf8in, tmpout + strlen (IDNA_ACE_PREFIX)) != 0)
 
369
  if (c_strcasecmp (utf8in, tmpout + strlen (IDNA_ACE_PREFIX)) != 0)
367
370
    {
368
371
      free (utf8in);
369
372
      return IDNA_ROUNDTRIP_VERIFY_ERROR;