summaryrefslogtreecommitdiff
path: root/l10ntools/inc
diff options
context:
space:
mode:
Diffstat (limited to 'l10ntools/inc')
-rw-r--r--l10ntools/inc/common.hxx2
-rw-r--r--l10ntools/inc/export.hxx4
2 files changed, 5 insertions, 1 deletions
diff --git a/l10ntools/inc/common.hxx b/l10ntools/inc/common.hxx
index 5a12bbbbebe4..047d2f4f00b2 100644
--- a/l10ntools/inc/common.hxx
+++ b/l10ntools/inc/common.hxx
@@ -28,12 +28,14 @@ struct HandledArgs
OString m_sMergeSrc;
OString m_sLanguage;
bool m_bMergeMode;
+ bool m_bUTF8BOM;
HandledArgs()
: m_sInputFile( OString() )
, m_sOutputFile( OString() )
, m_sMergeSrc( OString() )
, m_sLanguage( OString() )
, m_bMergeMode( false )
+ , m_bUTF8BOM( false )
{}
};
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index 595c0273fb5f..b9d260375d1c 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -226,9 +226,11 @@ private:
void CutComment( OString &rText );
+ void WriteUTF8ByteOrderMarkToOutput() { *aOutput.mSimple << '\xEF' << '\xBB' << '\xBF'; }
+
public:
Export( const OString &rOutput );
- Export(const OString &rMergeSource, const OString &rOutput, const OString &rLanguage);
+ Export(const OString &rMergeSource, const OString &rOutput, const OString &rLanguage, bool bUTF8BOM);
~Export();
void Init();