summaryrefslogtreecommitdiff
path: root/lingucomponent/source/lingutil
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2014-07-22 20:06:24 +0200
committerDavid Tardon <dtardon@redhat.com>2014-07-23 15:39:48 +0000
commit93350f3d968e01057cf0075582edbfa9a847ed1d (patch)
tree0fb0a91e57d81938ef3ee068f5310a2ebd0fdf04 /lingucomponent/source/lingutil
parent8b674d486ea7f18c02f8a29f4a87529d7daf4491 (diff)
fdo#80363 backport of the fix for Cyrillic spell. dictionary path
(cherry picked from commit e77a9785ca76d7350bbcbe8a107a80f89bc72831) Change-Id: I1b9c016e8d04f1cf14dad2a421c7eeb513a7b2ff Reviewed-on: https://gerrit.libreoffice.org/10472 Reviewed-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'lingucomponent/source/lingutil')
-rw-r--r--lingucomponent/source/lingutil/lingutil.cxx8
-rw-r--r--lingucomponent/source/lingutil/lingutil.hxx5
2 files changed, 13 insertions, 0 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx
index c0ef851f46a2..ab2244ba8ef7 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -48,6 +48,14 @@ using ::com::sun::star::lang::Locale;
using namespace ::com::sun::star;
#if defined(WNT)
+
+OString Win_AddLongPathPrefix( const OString &rPathName )
+{
+#define WIN32_LONG_PATH_PREFIX "\\\\?\\"
+ if (!rPathName.match(WIN32_LONG_PATH_PREFIX)) return WIN32_LONG_PATH_PREFIX + rPathName;
+ return rPathName;
+}
+
OString Win_GetShortPathName( const OUString &rLongPathName )
{
OString aRes;
diff --git a/lingucomponent/source/lingutil/lingutil.hxx b/lingucomponent/source/lingutil/lingutil.hxx
index f5f1d76356c8..5319661399c5 100644
--- a/lingucomponent/source/lingutil/lingutil.hxx
+++ b/lingucomponent/source/lingutil/lingutil.hxx
@@ -54,6 +54,11 @@ inline sal_Bool operator == ( const ::com::sun::star::lang::Locale &rL1, const :
}
#if defined(WNT)
+
+// to be use to get a path name with long path prefix
+// under Windows for Hunspell
+OString Win_AddLongPathPrefix( const OString &rPathName );
+
///////////////////////////////////////////////////////////////////////////
// to be use to get a short path name under Windows that still can be used with
// the 'fopen' call. This is necessary since under Windows there seems to be