1751720 Members
5625 Online
108781 Solutions
New Discussion юеВ

Re: Unicode Support

 
Amit Singh_1
Occasional Contributor

Unicode Support

Hi all,
I am facing a problem while using Motif2.0 on HP-UX11 and when I try to print a string of wchar_t. I wish to
display ??? in text window. When i try this i get a lot of garbage characters.
To be precise i get 6 characters (two for each character). However when i run
it on solaris it works fine. I am setting the LCTYPE to en_US.UTF-8 using the
setlocale method. Can you help me with this.

Thanks a lot in advance.
regards
Amit Singh
2 REPLIES 2
Alex Glennie
Honored Contributor

Re: Unicode Support

This maybe a patch issue ...... use http://www.software.hp.com/products/EURO/index.html as a starting point are these or there superceedants installed ?
Amit Singh_1
Occasional Contributor

Re: Unicode Support

Hi,
Actually, I found this problem when I ported my code from Solaris to HPUX, and then I saw that unicode characters are not showing properly on the dialog box. the only differnce I could see in both the codes was inclusion of file widec.h, which I commented while porting it to HPUX, as I couldn't find it. during compilation, it didn't raise any error...so I thought everything went fine. but then this problem of 'unicode chars not showing properly on dialog box' appeared. I've been trying to find a HP-UX patch related to widec.h..., but am not able to locate it. does anyone have any Idea...am I looking for the right patch ? or should I look for motif related patch on HP-UX...any help will be highly appreciated.
thanks,
Amit