Vinu wrote:
hi
How can i accept unicode char in command line. The application on
Solaris Sparc expects wide characters for its processing
Can you suggest standard way of doing it on Sun Solaris Sparc? We are
using gcc 3.4.2 .
I suspect it's less a GCC issue than a Solaris OS issue. Most of
the Sun OS's I've used that could handle Unicode at all have UTF-8
(that is, multibyte 8-bit) representations for Unicdoe on all the
system interfaces (program arguments, file names, ...). This is
fine because C++ is defective in defining wchar_t interfaces for
everything that needs them anyhow.
Use the " main(int, char**)" main signature and convert from
multibyte to wchar_t in main.