Mail from ILUG-BOM list (Non-Digest Mode)

On Sun, 02 Jul 2000, Manish Jethani wrote:

> fgetc reads a char from the file. Now /char/ is a byte, right?
> So I could be reading a binary file w/o losing any data, right?

A char is generally a byte, but not necessarily. 

> What about UNICODE? If UNICODE has characters as 2 bytes, would
> fgetc() be able to read chars as 2 bytes or 1 byte?

2 bytes.

> Is UNICODE supported on current platforms (Windows, Linux,
> Solaris)? Do we have UNICODE files on our PCs. How would I know
> if a file is UNICODE or ASCII (while reading it with fgetc())?

Linux supports it directly, IIRC. Among the DEs, GNOME does, maybe KDE
(don't know abt KDE).
No idea about solaris, windows -- IIRC some versions do.

Maybe sizeof(char) to know type of encoding?

Devdas Bhagat
--
Forest fires cause Smokey Bears.

_______________________________________________
Linuxers mailing list
[EMAIL PROTECTED]
http://ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to