| Last change
 on this file since 2589 was             646, checked in by bird, 22 years ago | 
        
          | 
A locale() testcase from 'samm'.
 | 
        
          | 
              
Property                 cvs2svn:cvs-rev
 set to                 1.1
Property                 svn:eol-style
 set to                 native
Property                 svn:executable
 set to                 *
Property                 svn:keywords
 set to                 Author Date Id Revision | 
        
          | File size:
            352 bytes | 
      
      
| Line |  | 
|---|
| 1 | /* from 'samm' */ | 
|---|
| 2 | #include <locale.h> | 
|---|
| 3 |  | 
|---|
| 4 | int main(void) | 
|---|
| 5 | { | 
|---|
| 6 | char *rc; | 
|---|
| 7 | printf("Setting locale to ru_ru.IBM-866\n"); | 
|---|
| 8 | rc=setlocale(LC_CTYPE,"ru_ru.IBM-866"); | 
|---|
| 9 | printf("return=%s\n",rc); | 
|---|
| 10 | printf("Setting locale to ab_cd\n"); | 
|---|
| 11 | rc=setlocale(LC_CTYPE,"ab_cd"); /* must return error, not null! */ | 
|---|
| 12 | printf("return=%s\n",rc); | 
|---|
| 13 | return 0; | 
|---|
| 14 | } | 
|---|
| 15 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.