Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a8525fe5
Kaydet (Commit)
a8525fe5
authored
Agu 13, 2014
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#82418 prefer UTF-8 over UTF-16
Change-Id: Id2c990d24dc942a6d061146ea88cf53ee29a1c3d
üst
1cf299ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
scuiasciiopt.cxx
sc/source/ui/dbgui/scuiasciiopt.cxx
+13
-2
No files found.
sc/source/ui/dbgui/scuiasciiopt.cxx
Dosyayı görüntüle @
a8525fe5
...
...
@@ -387,8 +387,19 @@ ScImportAsciiDlg::ScImportAsciiDlg( Window* pParent, const OUString& aDatName,
// Insert one "SYSTEM" entry for compatibility in AsciiOptions and system
// independent document linkage.
pLbCharSet
->
InsertTextEncoding
(
RTL_TEXTENCODING_DONTKNOW
,
aCharSetUser
);
pLbCharSet
->
SelectTextEncoding
(
ePreselectUnicode
==
RTL_TEXTENCODING_DONTKNOW
?
osl_getThreadTextEncoding
()
:
ePreselectUnicode
);
if
(
ePreselectUnicode
==
RTL_TEXTENCODING_DONTKNOW
)
{
rtl_TextEncoding
eSystemEncoding
=
osl_getThreadTextEncoding
();
// Prefer UTF-8, as UTF-16 would have already been detected from the stream.
// This gives a better chance that the file is going to be opened correctly.
if
(
(
eSystemEncoding
==
RTL_TEXTENCODING_UNICODE
)
&&
mpDatStream
)
eSystemEncoding
=
RTL_TEXTENCODING_UTF8
;
pLbCharSet
->
SelectTextEncoding
(
eSystemEncoding
);
}
else
{
pLbCharSet
->
SelectTextEncoding
(
ePreselectUnicode
);
}
if
(
nCharSet
>=
0
&&
ePreselectUnicode
==
RTL_TEXTENCODING_DONTKNOW
)
pLbCharSet
->
SelectEntryPos
(
static_cast
<
sal_uInt16
>
(
nCharSet
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment