Continue with the discussion in XChat.
Source code as attached. We want to see 'double value: 8.88' printed out
from commandline on ARM; however, UNREADABLE value printed out actually.
Thanks for all your suggestions! And I need to continue explore a fix.
Best regards,
Hong Yu
// test1.cpp
//
#include <string>
#include <iostream>
// #ifdef ENABLE_NLS
#include "locale.h"
#include "libintl.h"
// #endif
#define PACKAGE "gnash"
#define LOCALEDIR "/usr/local/share/locale"
using namespace std;
int
main(int argc, char *argv[])
{
// Enable native language support, i.e. internationalization
// Hong Yu -- debug
printf( "%s: LOCALEDIR [%s] \n", __PRETTY_FUNCTION__, LOCALEDIR );
// setlocale (LC_ALL, "");
char *str_lc_all = setlocale(LC_ALL, "");
printf( "%s: return of setlocale(LC_ALL, \"\"): [%s] \n", __PRETTY_FUNCTION__, str_lc_all );
bindtextdomain (PACKAGE, LOCALEDIR);
// Hong Yu -- debug
// bind_textdomain_codeset( PACKAGE, "UTF-8" );
textdomain (PACKAGE);
double d_dummy = 8.88;
cout << "double value: " << d_dummy << endl;
return 0;
}
_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev