summary refs log tree commit diff
path: root/iconv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-01 00:00:13 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-01 00:00:13 +0000
commitfb46e8d2849c0511de963572646c4114cb427599 (patch)
treec4d9cd8af4aae93a9a48aebeaa9a63ffa2ff007b /iconv
parentfa87f4037711e92c52965e87a83c60f270292dc0 (diff)
downloadglibc-fb46e8d2849c0511de963572646c4114cb427599.tar.gz
glibc-fb46e8d2849c0511de963572646c4114cb427599.tar.xz
glibc-fb46e8d2849c0511de963572646c4114cb427599.zip
Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN whether this information is available.
Diffstat (limited to 'iconv')
-rw-r--r--iconv/gconv_trans.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/iconv/gconv_trans.c b/iconv/gconv_trans.c
index f0656445be..4fcb23209a 100644
--- a/iconv/gconv_trans.c
+++ b/iconv/gconv_trans.c
@@ -49,7 +49,6 @@ __gconv_transliterate (struct __gconv_step *step,
   uint32_t *winbufend;
   uint_fast32_t low;
   uint_fast32_t high;
-  uint32_t *default_missing;
 
   /* The input buffer.  There are actually 4-byte values.  */
   winbuf = (uint32_t *) *inbufp;
@@ -184,10 +183,10 @@ __gconv_transliterate (struct __gconv_step *step,
     }
 
   /* One last chance: use the default replacement.  */
-  default_missing = (uint32_t *)
-    _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TRANSLIT_DEFAULT_MISSING);
-  if (default_missing[0] != L'\0')
+  if (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN) != 0)
     {
+      uint32_t *default_missing = (uint32_t *)
+	_NL_CURRENT (LC_CTYPE, _NL_CTYPE_TRANSLIT_DEFAULT_MISSING);
       const unsigned char *toinptr = (const unsigned char *) default_missing;
       uint32_t len = _NL_CURRENT_WORD (LC_CTYPE,
 				       _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN);