To: the Unicode experts at linux-utf8:
Salut!
When in doubt as to where to begin, always start at the begining.
My first program:
================================
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello World!\n");
printf("Καλημέρα
Κόσμε!\n");
printf("Bonjour � Tous!\n");
return 0;
}
================================
This should work, because the literal in printf() is a multi-byte character
string.
But it didn't.
I have two scenarios, neither is Linux.
1) A gcc based RDE called "Dev-4 C++" for Windows 98. The editor in this
program will not let me enter Greek letters, neither in 8859-7, nor utf-8. On
Copy & Paste, it seems to convert everything to 8859-1, so I can write a really
nice 'hello' program in Latin-1.
2) gcc running in the cygwin emulator. I can't seem to make vim do anything
reasonable, so I create the utf-8 file in Windows using Word 2000 (or UniPad),
and copy it over to /cygwin, where I can compile and run it. I recognise the
"Hello World!" string output, but I haven't been able to determine the exact
nature of the other strings.
My question is this:
I assume the compiler uses the locale to determine the character set to use for
the string literals.
Might I be able to set the locale in cygwin to 'something-utf8'?
Regards,
Elvis
PS
Wouldn't it be nice if all computers were utf-8 by default, but I know, legacy
issues... I don't think this Unicode thing will ever work, well, maybe in a
hundred years. But by then, the world will be speaking English.
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/