Groups | Search | Server Info | Login | Register


Groups > comp.os.os2.programmer.porting > #218

Re: SOLVED!: Problem: error in iconv_open

Newsgroups comp.os.os2.programmer.porting
Date 2013-01-21 03:00 -0800
References (6 earlier) <slrnj04p8g.99c.nospam-abuse@chorin.math.berkeley.edu> <0KhBVN5juOdd-pn2-etRSoGxQzz6z@neo_iii> <0KhBVN5juOdd-pn2-zuHodgfNGl5U@neo_iii> <4e19f24a$0$6584$9b4e6d93@newsspool3.arcor-online.net> <0KhBVN5juOdd-pn2-HFexfnyGshOl@neo_iii>
Message-ID <9c36b679-1404-476c-8290-64b4287062ee@googlegroups.com> (permalink)
Subject Re: SOLVED!: Problem: error in iconv_open
From vsvidya7@gmail.com

Show all headers | View raw


On Monday, 11 July 2011 04:03:27 UTC+5:30, Mentore Siesto  wrote:
> Il giorno Sun, 10 Jul 2011 18:41:13 UTC, "Lars Erdmann" 
> <lars.erdmann@arcor.de> ha scritto:
> 
> > Hallo,
> > 
> > > It was not the random number generator. I built another release using
> > > another generator, which uses a specific algorithm, and noticed the
> > > very same problem. So I checked out the fopen () calls, as the program
> > > worked fine with text file, and guess what?
> > >
> > > Yes, the original source opens files without the "binary" flag. adding
> > > "b" to all the fopen () calls solved the problem.
> > 
> > Use of "fopen":
> > The usual pitfall when porting UNIX type programs to Windows or OS/2.
> > UNIX makes no distinction between text and binary files. Therefore it opens
> > all files as binary files (even though in the C-RTL you can specify binary 
> > or text).
> > Windows and OS/2 on the other hand open files as text files as a default.
> > (unless the C-RTL specifies otherwise).
> > 
> > Lars 
> 
> Well, this time the problem was that I was ought to find a suitable 
> random number generator and create arrays of 32 unsigned char. The 
> conversion between unsigned int and unsigned char made me think 
> probably I was making a mistake in typecasting, that's why I didn't 
> think about fopen.
> 
> After a while I asked myself why it worked on text files, and voila, 
> the solution came.
> 
> Mentore

Hi Sir,
I am working on the jpeg image file encryption and decryption, for this downloaded the 
source code from  link :http://www.aescrypt.com/linux_aes_crypt.html  for linux .
I cross compiled this code package and for arm-none-linux-gnueabi-gcc   compiler.
But i am getting run time error "Error in iconv_open: Invalid argument" .
How this error i can solve and which library supports the UTF-16 in LINUX (ubuntu-10.10) please help me.
Processor : DM3730.

Thanks,
Vidya

Back to comp.os.os2.programmer.porting | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-06-05 20:22 +0000
  Re: Problem: error in iconv_open Dave Yeo <dave.r.yeo@gmail.com> - 2011-06-05 15:16 -0700
  Re: Problem: error in iconv_open KO Myung-Hun <komh@chollian.net> - 2011-06-06 22:50 +0900
    Re: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-06-06 20:40 +0000
    Re: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-06-06 20:45 +0000
      Re: Problem: error in iconv_open Dave Yeo <dave.r.yeo@gmail.com> - 2011-06-06 16:41 -0700
        Re: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-06-19 16:40 +0000
          Re: Problem: error in iconv_open Dave Yeo <dave.r.yeo@gmail.com> - 2011-06-19 11:30 -0700
            Re: Problem: error in iconv_open Ilya Zakharevich <nospam-abuse@ilyaz.org> - 2011-06-22 21:56 +0000
              Re: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-07-09 10:37 +0000
                Re: SOLVED!: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-07-10 18:24 +0000
                Re: SOLVED!: Problem: error in iconv_open "Lars Erdmann" <lars.erdmann@arcor.de> - 2011-07-10 20:41 +0200
                Re: SOLVED!: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-07-10 22:33 +0000
                Re: SOLVED!: Problem: error in iconv_open vsvidya7@gmail.com - 2013-01-21 03:00 -0800
                Re: SOLVED!: Problem: error in iconv_open Dave Yeo <dave.r.yeo@gmail.com> - 2011-07-10 12:07 -0700
      Re: Problem: error in iconv_open Ilya Zakharevich <nospam-abuse@ilyaz.org> - 2011-06-08 00:45 +0000
        Re: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-06-08 20:49 +0000
        Re: Problem: error in iconv_open piesse <piesse@despammed.com> - 2011-06-09 22:28 +0200
          Re: Problem: error in iconv_open Mentore <mentore.siesto@libero.it> - 2011-06-13 03:33 -0700

csiph-web