Other languages support in RHEL 4 even if OS is installed in english


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Other languages support in RHEL 4 even if OS is installed in english
# 1  
Old 04-04-2008
Network 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.
# 2  
Old 04-05-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bash find version of an installed application but if none is found set variable to App Not Installed

Hello Forum, I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so: APP=application --version But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies

2. UNIX for Dummies Questions & Answers

Windows->RHEL->RHEL X11 Forwarding?

I know this question might have been asked a lot but couldn't find anything that worked. From a windows machine 'A' I can only SSH into Linux server 'B' from where I can SSH into another Linux server 'C'. I need to be able to run GUI interfaces on server C which run on my Windows machine. I... (3 Replies)
Discussion started by: hr.prasan
3 Replies

3. Red Hat

RHEL 6, Spacewalk 2.3 unable to download RHEL 5 repo data

Hello all, I am having a bit of an issue on my Spacewalk installation. Some amplifying information is that it is Spacewalk 2.3 installed on a RHEL 6 machine and I am attempting to install/update a RHEL 5 channel/repository. I am fairly new to Spacewalk so I am still learning but this is what I... (3 Replies)
Discussion started by: jstone4646
3 Replies

4. Red Hat

Error throwing while installing vsftpd package in rhel 6. using rhel 6 dvd.

Hi all, Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out. i have dual os, win 7 & rhel 6. i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue. below error... (6 Replies)
Discussion started by: redhatlbug
6 Replies

5. Red Hat

Does RHEL 5 provide a command to collect RHEL system log in single compress file?

Hi, I heard a command that can collect all RHEL 5 log in a single compress file before I forget. Does any body know...What the command is ? Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies

6. Red Hat

Trouble with installed / not installed rpm unixODBC/libodbc.so.1

Hey there, i run 1: on my server (RHEL 6) and getting response that the libodbc is not installed. If i use yum for installation, it tells me, there is no package like this ( 2: ). Since in the description of Definiens is mentioned that the Run-time dependency is unixODBC (libodbc.so.1), I assume... (2 Replies)
Discussion started by: rkirsten
2 Replies

7. Solaris

How to mount a Files System where RHEL is installed on a Sun server Machine..

Hi Everyone, I have a machine where RHEL(Red Hat Enterprise Linux) is installed and few of our products are saved on the same. Our products work only on sparc 6 + and i want to basically asve the products on the machine which has RHEL installed on it and mount the drive on the sun server and... (2 Replies)
Discussion started by: sankasu
2 Replies

8. What is on Your Mind?

Programming languages polyglots: how many languages you know?

Post what languages (including scripting) you know, why and where you think that language is most usable. Also include libraries in which you're really good at (libusb, gtk, qt, etc). assembly? C or C++? perl or python? pascal? bash or csh/tcsh? opengl? gtk or qt? mono? (27 Replies)
Discussion started by: redoubtable
27 Replies
Login or Register to Ask a Question