[Libreoffice-bugs] [Bug 97998] FILESAVE When saving file as DBF dollar signs in headers change to underscores

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jun 11 11:47:32 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=97998

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lionel at mamane.lu,
                   |                            |serval2412 at yahoo.fr

--- Comment #5 from Julien Nabet <serval2412 at yahoo.fr> ---
Here's a straightforward patch:
diff --git a/sc/source/ui/docshell/docsh8.cxx
b/sc/source/ui/docshell/docsh8.cxx
index fe715fa66cf6..8aabdad1215c 100644
--- a/sc/source/ui/docshell/docsh8.cxx
+++ b/sc/source/ui/docshell/docsh8.cxx
@@ -565,7 +565,7 @@ void lcl_GetColumnTypes(
             sal_Unicode c;
             for ( const sal_Unicode* p = aFieldName.getStr(); ( c = *p ) != 0;
p++ )
             {
-                if ( rtl::isAsciiAlpha(c) || rtl::isAsciiDigit(c) || c == '_'
)
+                if ( rtl::isAsciiAlpha(c) || rtl::isAsciiDigit(c) || c == '_'
|| c == '$')
                     aTmpStr += OUStringLiteral1(c);
                 else
                     aTmpStr += "_";


Lionel: with hexdump, I saw that exported file was dBaseIII (see
http://opengrok.libreoffice.org/xref/core/connectivity/source/inc/dbase/DTable.hxx#dBaseIII)
I don't find any doc which indicates precisely filename constraints. I read
about 10 characters max and just ascii. But I suppose you can't use any ascii
character.
Any thoughts?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170611/b7d20d72/attachment-0001.html>


More information about the Libreoffice-bugs mailing list