Redhat linux cannot print euro on console

Sudhakar Manukonda mnsrsudhakar at yahoo.co.in
Fri Apr 20 04:23:45 UTC 2007


Hi,
   
  I have tried that but Iam unable to print euro on my console.
   
  [root at hyrlnx01 test]# LANG=en_US.UTF-8 ./a.out
Euro sign: Γé¼

  I tried setfont command and set page to ISO8859-15 but still Iam getting the
  same output.
   
  Compiling the code I have given or any other code snippet If you could print euro symbol on your console please send me the list of packages installed on your system (If possible).
   
  Regards
  Sudhakar
   
   
  
Herta Van den Eynde <herta.vandeneynde at gmail.com> wrote:
  On 19/04/07, Sudhakar Manukonda wrote:
> Hi,
>
> Iam trying to compile a simple program to print euro symbol on redhat linux system.
>
> My system details:
> GNU C Library stable release version 2.3.4, by Roland McGrath et al.
> Compiled by GNU CC version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4).
> Compiled on a Linux 2.4.20 system on 2004-12-20.
>
>
> my c program:
>
> #include 
> #include 
>
> int main() {
> setlocale(LC_CTYPE, "");
> printf("%lc", 0x20ac);
> return 0;
> }
> (removed additional checks to reduce length of mail)
>
> [root at hyrlnx01 test]# LANG=de_DE.UTF-8 ./a.out
> Euro sign: Γé¼
>
> [root at hyrlnx01 test]# LANG=de_DE at euro ./a.out
> Euro sign: ñ
>
> I have modified the file /etc/sysconfig/i18n to contain following lines
> SYSFONT=lat0-16
> SYSFONTACM=iso15
>
> But Iam getting the same output.
>
> Do I need to install any other packages ?
> Do I need to modify any other configuration files ?
>
> Please clarify and advise
>
> Regards
> Sudhakar

Try setting LANG=en_US.UTF-8, where the UTF-8 is the important part.

Kind regards,

Herta

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


       
---------------------------------
 Check out what you're missing if you're not on Yahoo! Messenger 


More information about the redhat-list mailing list