Internationalization and localization tools


File and Path Function

char *get_current_dir_name(void);

Internationalization (I18n) Function Overview

The get_current_dir_name function is basically equivalent to getcwd(NULL, 0). The only difference occurs if the PWD environment variable is set and is a valid value; in this case, get_current_dir_name returns the PWD value. This is a subtle difference from getcwd which is visible if the path described by the PWD value is using one or more symbol links: getcwd will resolve the symbol links to formulate an absolute path, whereas get_current_dir_name will not resolve the symbol links.

I18n Issues

On ANSI UTF-16 platforms, use a conversion function to convert the return from the call to get_current_dir_name to a wide-character string.

See Pathnames for a discussion of path and filename considerations in an internationalized application.

Recommended Replacements*

*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