~ubuntu-branches/ubuntu/hardy/gnupg2/hardy-proposed

« back to all changes in this revision

Viewing changes to intl/localcharset.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-05-15 13:54:55 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070515135455-89qfyalmgjy6gcqw
Tags: 2.0.4-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Remove libpcsclite-dev, libopensc2-dev build dependencies (they are in
    universe).
  - Build-depend on libcurl3-gnutls-dev
  - g10/call-agent.c: set DBG_ASSUAN to 0 to suppress a debug message
  - Include /doc files as done with gnupg
  - debian/rules: add doc/com-certs.pem to the docs for gpgsm
  - debian/copyright: update download url
  - debian/README.Debian: remove note the gnupg2 isn't released yet.
  - debian/control: Change Maintainer/XSBC-Original-Maintainer field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
/* Written by Bruno Haible <bruno@clisp.org>.  */
21
21
 
22
 
#ifdef HAVE_CONFIG_H
23
 
# include <config.h>
24
 
#endif
 
22
#include <config.h>
25
23
 
26
24
/* Specification.  */
27
25
#include "localcharset.h"
28
26
 
29
 
#if HAVE_STDDEF_H
30
 
# include <stddef.h>
31
 
#endif
32
 
 
 
27
#include <stddef.h>
33
28
#include <stdio.h>
34
 
#if HAVE_STRING_H
35
 
# include <string.h>
36
 
#else
37
 
# include <strings.h>
38
 
#endif
39
 
#if HAVE_STDLIB_H
40
 
# include <stdlib.h>
41
 
#endif
 
29
#include <string.h>
 
30
#include <stdlib.h>
42
31
 
43
32
#if defined _WIN32 || defined __WIN32__
44
33
# define WIN32_NATIVE
53
42
# if HAVE_LANGINFO_CODESET
54
43
#  include <langinfo.h>
55
44
# else
56
 
#  if HAVE_SETLOCALE
 
45
#  if 0 /* see comment below */
57
46
#   include <locale.h>
58
47
#  endif
59
48
# endif
76
65
# define relocate(pathname) (pathname)
77
66
#endif
78
67
 
 
68
/* Get LIBDIR.  */
 
69
#ifndef LIBDIR
 
70
# include "configmake.h"
 
71
#endif
 
72
 
79
73
#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
80
74
  /* Win32, Cygwin, OS/2, DOS */
81
75
# define ISSLASH(C) ((C) == '/' || (C) == '\\')
358
352
     (like SunOS 4 or DJGPP) have only the C locale.  Therefore we don't
359
353
     use setlocale here; it would return "C" when it doesn't support the
360
354
     locale name the user has set.  */
361
 
#  if HAVE_SETLOCALE && 0
 
355
#  if 0
362
356
  locale = setlocale (LC_CTYPE, NULL);
363
357
#  endif
364
358
  if (locale == NULL || locale[0] == '\0')