The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Displaying the available locales in english eamani_sun Linux 1 07-27-2008 06:30 AM
LANG=C not English? dotancohen Linux 4 03-11-2008 01:40 AM
Difference between RHEL 3 AND RHEL 4 sakthi_13 Linux 2 09-11-2007 04:51 AM
Please decode in English ST2000 Shell Programming and Scripting 4 07-16-2002 10:33 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 04-04-2008
Registered User
 

Join Date: Dec 2006
Location: mettalangudi
Posts: 1
Angry Other languages support in RHEL 4 even if OS is installed in english

I am writing tcl script in linux which will compare orignal string and captured string from appilication in all locale.
Since the linux OS is installed in english, the strings of the particular locale are displayed with junk characters in bash terminal from where Tcl script runs. How to make linux to display the strings of particular locale correctly in bash terminal so that tcl script can compare the strings perfectly.
Appilication supports 20 languages. We should be able to read the strings in that particular locale even if linux is installed in english . I am using RedHat Enterprise Linux 4 as linux operating system.
Kindly help me on this.
Reply With Quote
Forum Sponsor
  #2  
Old 04-05-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
If the terminal program you are using supports Unicode and you have the required fonts, it should simply be a matter of selecting the right locale. See the locale manual page for an introduction. An English UTF-8 locale should work fine if you can get the application to print its different localizations regardless of your selected locale.

As for whether TCL can cope with Unicode, I have no idea.

As such, two 8-bit strings are equial if their bytes are equal, so you might be barking up the wrong tree; even if the strings are not readable in your terminal, you should be able to compare them, if the platform supports arbitrary 8-bit strings. However, if they are encoded differently (e.g. the application prints UTF-8, but your TCL script wants to compare the output to strings which are encoded in KOI-8R or whatever), it's pretty much back to the drawing board for you.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0