diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-10-19 01:52:58 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-10-19 02:10:36 +0200 |
commit | 9706288e95cfdbecdfc2cab3a66a2cce07ac23b4 (patch) | |
tree | c17d9affd8df7315c38514919546d2af62f288f4 /sc/qa | |
parent | 9796ac726e4c194e3cfa35e201815f9f1bb03e6a (diff) |
add output for language settings to log file
some windows builds crash in this test, maybe they get a false language
setting from somewhere
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/filters-test.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx index 68885a5c9068..939109ee46fc 100644 --- a/sc/qa/unit/filters-test.cxx +++ b/sc/qa/unit/filters-test.cxx @@ -475,6 +475,13 @@ void ScFiltersTest::testFormats() CPPUNIT_ASSERT_MESSAGE("Failed to load formats.*", xDocSh.Is()); ScDocument* pDoc = xDocSh->GetDocument(); + //output this just for debugging, should make it easier to see which local the numberformatter really used + //it helps to understand why some windows build fails in this test + LanguageType aLang, aCjkLang, aCtlLang; + pDoc->GetLanguage(aLang, aCjkLang, aCtlLang); + std::cout << "Language Settings in ScDocument: normal: " << aLang << " Cjk: " << aCjkLang << " Ctl: " << aCtlLang << std::endl; + std::cout << "Language for NumberFormatter: " << pDoc->GetFormatTable()->GetLanguage() << std::endl; + //test Sheet1 with csv file rtl::OUString aCSVFileName; createCSVPath(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("numberFormat.")), aCSVFileName); |