summaryrefslogtreecommitdiff
path: root/stdlib/wctomb.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-03-13 03:41:42 +0000
committerRoland McGrath <roland@gnu.org>1995-03-13 03:41:42 +0000
commit4ca6860994510e83ae70975c669a5dc37f89919a (patch)
treed765440cc364dfa9f0fee00b5ef137f6632e4b72 /stdlib/wctomb.c
parent7782ca54e1a3fc0a583febda9acd08cc63251a59 (diff)
#if 0 out code for non-ASCII chars until the locale data format is implemented.
Diffstat (limited to 'stdlib/wctomb.c')
-rw-r--r--stdlib/wctomb.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/stdlib/wctomb.c b/stdlib/wctomb.c
index 53f1cef3fc..78b55b7af5 100644
--- a/stdlib/wctomb.c
+++ b/stdlib/wctomb.c
@@ -17,7 +17,7 @@ not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
#include <ansidecl.h>
-#include <localeinfo.h>
+#include "../locale/localeinfo.h"
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
@@ -32,12 +32,14 @@ extern long int _mb_shift; /* Defined in mbtowc.c. */
int
DEFUN(wctomb, (s, wchar), register char *s AND wchar_t wchar)
{
+#if 0
register CONST mb_char *mb;
if (_ctype_info->mbchar == NULL)
mb = NULL;
else
mb = _ctype_info->mbchar->mb_chars;
+#endif
/* If S is NULL, just say if we're shifted or not. */
if (s == NULL)
@@ -63,10 +65,14 @@ DEFUN(wctomb, (s, wchar), register char *s AND wchar_t wchar)
return -1;
}
+#if 1
+ return -1;
+#else
mb += wchar + _mb_shift;
if (mb->string == NULL || mb->len == 0)
return -1;
memcpy((PTR) s, (CONST PTR) mb->string, mb->len + 1);
_mb_shift += mb->shift;
return mb->len;
+#endif
}