<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - FILESAVE When saving file as DBF dollar signs in headers change to underscores"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=97998">bug 97998</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>lionel@mamane.lu, serval2412@yahoo.fr
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILESAVE When saving file as DBF dollar signs in headers change to underscores"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=97998#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILESAVE When saving file as DBF dollar signs in headers change to underscores"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=97998">bug 97998</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>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
<a href="http://opengrok.libreoffice.org/xref/core/connectivity/source/inc/dbase/DTable.hxx#dBaseIII">http://opengrok.libreoffice.org/xref/core/connectivity/source/inc/dbase/DTable.hxx#dBaseIII</a>)
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?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>