Diff for /dietlibc/t.c between versions 1.149 and 1.150

version 1.149, 2001/07/27 14:39:17 version 1.150, 2001/07/31 14:24:33
Line 41 Line 41
 #include <syslog.h>  #include <syslog.h>
 #include <sys/un.h>  #include <sys/un.h>
 #include <fcntl.h>  #include <fcntl.h>
   #include <iconv.h>
   
 #if 0  #if 0
 static const char* Ident;  static const char* Ident;
Line 87  void foo(int tmp,...) { Line 88  void foo(int tmp,...) {
 extern int __lltostr(char *s, int size, unsigned long long i, int base, char UpCase);  extern int __lltostr(char *s, int size, unsigned long long i, int base, char UpCase);
   
 int main(int argc,char *argv[]) {  int main(int argc,char *argv[]) {
     char *inbuf="\xe2\x89\xa0";
   //  char *inbuf="\xc2\xa9";
     char outbuf[100];
     char *obptr=&outbuf;
     size_t iblen=strlen(inbuf);
     size_t oblen=100;
     iconv_t i=iconv_open("utf-8","utf-8");
     iconv(i,&inbuf,&iblen,&obptr,&oblen);
     iconv_close(i);
     outbuf[100-oblen]=0;
     puts(outbuf);
   #if 0
   printf("%c %c\n",tolower('C'),toupper('c'));    printf("%c %c\n",tolower('C'),toupper('c'));
   #endif
 #if 0  #if 0
   printf("foo\n");    printf("foo\n");
 #endif  #endif

Removed from v.1.149  
changed lines
  Added in v.1.150


LinuxTV legacy CVS <linuxtv.org/cvs>