Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 03/13/2012 10:10 AM, Jonathan Adams wrote:
no noticeable difference in either output.
[...]
Please apply the below patch to see where parsing fails:

diff --git a/stoc/source/simpleregistry/textualservices.cxx
b/stoc/source/simpleregistry/textualservices.cxx
index 37540c8..baa88d4 100644
--- a/stoc/source/simpleregistry/textualservices.cxx
+++ b/stoc/source/simpleregistry/textualservices.cxx
@@ -1236,7 +1236,8 @@ TextualServices::TextualServices(rtl::OUString const
&  uri):
  {
     try {
         Parser(uri, data_);
-    } catch (css::container::NoSuchElementException&) {
+    } catch (css::container::NoSuchElementException&e) {
+fprintf(stderr,"caught
<%s>\n",rtl::OUStringToOString(e.Message,RTL_TEXTENCODING_UTF8).getStr());
         throw css::registry::InvalidRegistryException(
             (uri +
              rtl::OUString(

Ach, this was no good. It should be something like also adding a second catch block

  catch (css::registry::InvalidRegistryException & e) {
    fprintf(
      stderr, "caught <%s>\n",
      rtl::OUStringToOString(e.Message,RTL_TEXTENCODING_UTF8).getStr());
    throw;
  }

i.e., seeing what InvalidRegistryException is thrown from within the Parser ctor. (And the attached .rdb looks OK on a quick glance. Lets see if this patch outputs something useful.)

Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.