HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - Linux
 - >
 - Support for tr_TR.iso88599 using wcstombs
 
Operating System - Linux
        1840184
        Members
    
    
        4151
        Online
    
    
        110162
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-18-2003 08:33 AM
05-18-2003 08:33 AM
			
				
					
						
							Support for tr_TR.iso88599 using wcstombs
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						I have a simple C program:
#include
#include          
#include
#include
int main()
{
int nLen = 10;
int i = 0;
wchar_t *wcs = (wchar_t*)malloc(nLen*sizeof(wchar_t)+4);
char *dest;
int rc;
memset(wcs, '\0', nLen*sizeof(wchar_t)+4);
for (i=0; i  {
wcs[i] = 0x0031;
}
wcs[1] = 0x0131;
setlocale(LC_ALL, "");
dest = (char*)malloc(nLen*2+1);
memset(dest, '\0', 2*nLen+1);
rc = wcstombs(dest, wcs, 2*nLen);
printf("--> rc: %d.\n", rc);
printf("--> output: %s.\n", dest);
}
When I set the locale in my environment to tr_TR.iso88599, the character \u0131 is not translated. If I used C.utf8, then it succeeds. \u0131 should be a valid code point in iso88599 (I-nodot).
Does anyone know the reason why?
Thank you very much.  
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
#include
#include
#include
#include
int main()
{
int nLen = 10;
int i = 0;
wchar_t *wcs = (wchar_t*)malloc(nLen*sizeof(wchar_t)+4);
char *dest;
int rc;
memset(wcs, '\0', nLen*sizeof(wchar_t)+4);
for (i=0; i
wcs[i] = 0x0031;
}
wcs[1] = 0x0131;
setlocale(LC_ALL, "");
dest = (char*)malloc(nLen*2+1);
memset(dest, '\0', 2*nLen+1);
rc = wcstombs(dest, wcs, 2*nLen);
printf("--> rc: %d.\n", rc);
printf("--> output: %s.\n", dest);
}
When I set the locale in my environment to tr_TR.iso88599, the character \u0131 is not translated. If I used C.utf8, then it succeeds. \u0131 should be a valid code point in iso88599 (I-nodot).
Does anyone know the reason why?
Thank you very much.
		1 REPLY 1
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
09-05-2007 10:58 AM
09-05-2007 10:58 AM
			
				
					
						
							Re: Support for tr_TR.iso88599 using wcstombs
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						The character \u0131 is not the same as 0x0131.
For iso88599, i-nodot is 0xfd. In unicode it is 0x0131 as you have.
Tru64 has this nice web page:
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51_HTML/MAN/MAN5/0035____.HTM
For HP-UX, you can look at:
/usr/lib/nls/loc/charmaps/iso88599.cm
		
		
	
	
	
For iso88599, i-nodot is 0xfd. In unicode it is 0x0131 as you have.
Tru64 has this nice web page:
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51_HTML/MAN/MAN5/0035____.HTM
For HP-UX, you can look at:
/usr/lib/nls/loc/charmaps/iso88599.cm
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP