Y-lib
Loadrunner libraries
Data Structures | Macros | Functions
Standard C locale structures and functions

Standard C structures and functions to handle the locale (defined in locale.h) More...

Data Structures

struct  lconv
 Returned by localeconv. Documented at http://www.cplusplus.com/reference/clocale/lconv/. More...
 

Macros

#define LC_ALL   0
 
#define LC_COLLATE   1
 
#define LC_CTYPE   2
 
#define LC_MONETARY   3
 
#define LC_NUMERIC   4
 
#define LC_TIME   5
 
#define LC_MESSAGES   6
 

Functions

char * setlocale (int category, const char *locale)
 Documented at http://www.cplusplus.com/reference/clocale/setlocale/. More...
 
struct lconvlocaleconv (void)
 Documented at http://www.cplusplus.com/reference/clocale/localeconv/. More...
 

Detailed Description

Standard C structures and functions to handle the locale (defined in locale.h)

Warning
Vugen executes a setlocale(LC_ALL, "") before the start – so the system's default locale is active instead of the minimal locale and the default for all C compilers: setlocale(LC_ALL, "C").
This may cause functions like sscanf to behave unexpectedly, for instance when the decimal point is a comma (as in many European languages) sscanf(buf , "%lf", &double_var) will not yield the correct number.
To print the currently active locale use: lr_log_message("%s", setlocale(LC_ALL, NULL));

Macro Definition Documentation

#define LC_ALL   0

Definition at line 365 of file vugen.h.

#define LC_COLLATE   1

Definition at line 366 of file vugen.h.

#define LC_CTYPE   2

Definition at line 367 of file vugen.h.

#define LC_MESSAGES   6

Definition at line 371 of file vugen.h.

#define LC_MONETARY   3

Definition at line 368 of file vugen.h.

#define LC_NUMERIC   4

Definition at line 369 of file vugen.h.

#define LC_TIME   5

Definition at line 370 of file vugen.h.

Function Documentation

struct lconv* localeconv ( void  )
char* setlocale ( int  category,
const char *  locale 
)