![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |