[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-dev] from Hong Yu: wrong number display in 'cout << d_dummy' from
From: |
Hong Yu |
Subject: |
[Gnash-dev] from Hong Yu: wrong number display in 'cout << d_dummy' from running test program on ARMv5 |
Date: |
Wed, 19 Mar 2008 19:41:35 +0800 |
User-agent: |
Thunderbird 2.0.0.12 (X11/20080213) |
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] Gnash-ffmpeg and boost-foreach.hpp, Jun Ma, 2008/03/19
- Re: [Gnash-dev] Gnash-ffmpeg and boost-foreach.hpp, Hong Yu, 2008/03/19
- Re: [Gnash-dev] Gnash-ffmpeg and boost-foreach.hpp, strk, 2008/03/19
- Re: [Gnash-dev] Gnash-ffmpeg and boost-foreach.hpp, Jun Ma, 2008/03/19
- Re: [Gnash-dev] Gnash-ffmpeg and boost-foreach.hpp, Hong Yu, 2008/03/19
- Re: [Gnash-dev] Gnash-ffmpeg and boost-foreach.hpp, strk, 2008/03/19
- Re: [Gnash-dev] Gnash-ffmpeg and boost-foreach.hpp, Jun Ma, 2008/03/19
- [Gnash-dev] from Hong Yu: wrong number display in 'cout << d_dummy' from running test program on ARMv5,
Hong Yu <=
- [Gnash-dev] Re: from Hong Yu: wrong number display in 'cout << d_dummy' from running test program on ARMv5, Sandro Santill, 2008/03/19
- Re: [Gnash-dev] Re: from Hong Yu: wrong number display in 'cout << d_dummy' from running test program on ARMv5, Hong Yu, 2008/03/19
- Re: [Gnash-dev] Gnash-ffmpeg and boost-foreach.hpp, Hong Yu, 2008/03/19