Internationalization and localization tools


File and Path Function

int fwide(FILE *stream, int mode);

Internationalization (I18n) Function Overview

The fwide function returns a value greater than zero if stream is wide-oriented, less than zero if stream is byte-oriented, and 0 if stream is unbound. If the argument mode is not zero, then fwide will attempt to first change the stream's orientation if it is currently unbound: to wide-oriented, if mode is greater than zero, or to byte-oriented, if mode is less than zero.

I18n Issues

Set the correct stream-orientation for files that contain international characters. For UTF-16/UTF-32 Unicode files, set the orientation to wide-oriented; for UTF-8 Unicode or Windows MBCS files, set the orientation to byte-oriented.

See File I/O, which discusses reading and writing non-ASCII text data files.

Recommended Replacements*

There are no variations of this function.

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

File and Path Functions

 

Lingoport internationalization and localization services and software