I18N: C++ (and C) locales; curr_symbol; and fonts
Can anyone help w/ advice on using the standard C++ locale capability to print currency symbols? I'm using a standard SuSE setup and compiling and running c++ code, using g++ from a shell. In a few simple experiments, I have mixed results in printing the UK pound sterling symbol w/ an English locale (this is OK); the euro symbol w/ a German locale (the character shown is not the euro symbol); and poor results trying to show the Yen symbol w/ a Japanese locale (nothing, or a string ending w/ a Yen symbol, depending on the precise locale used, IIRC). It could well be that there is a fault in my c++ code; but what I suspect most is that I should be using non-default fonts (possibly Unicode, with wide character handling in the c++) for at least some of these currency symbols. I'm sufficiently a newbie to Linux and SuSE that I don't know the best (or any) way to change the font in my default shell, and/or for file handling. (Or any aspects of differences between fonts used to display input from the keyboard, and standard output.) So, can anyone offer useful advice on these issues, or point me at suitable material? TIA. -- Alec Ross
participants (1)
-
Alec Ross