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
0cc476b2
Kaydet (Commit)
0cc476b2
authored
Nis 14, 2011
tarafından
Christian Dywan
Kaydeden (comit)
Jan Holesovsky
Nis 14, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed LANG setting in the _imp_setProcessLocale() function.
üst
0e56d8c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
24 deletions
+16
-24
nlsupport.c
sal/osl/unx/nlsupport.c
+16
-24
No files found.
sal/osl/unx/nlsupport.c
Dosyayı görüntüle @
0cc476b2
...
...
@@ -942,6 +942,16 @@ void _imp_getProcessLocale( rtl_Locale ** ppLocale )
set the current process locale
*****************************************************************************/
static
int
_setenv
(
const
char
*
name
,
const
char
*
value
)
{
#if defined( AIX )
return
setenv
(
name
,
value
,
1
);
#else
return
setenv
(
name
,
value
);
#endif
}
int
_imp_setProcessLocale
(
rtl_Locale
*
pLocale
)
{
char
locale_buf
[
64
];
...
...
@@ -950,32 +960,14 @@ int _imp_setProcessLocale( rtl_Locale * pLocale )
if
(
NULL
!=
_compose_locale
(
pLocale
,
locale_buf
,
64
)
)
{
/* only change env vars that exist already */
if
(
getenv
(
"LC_ALL"
)
)
{
#if defined( FREEBSD ) || defined( NETBSD ) || defined( MACOSX ) || \
defined( AIX ) || defined( OPENBSD ) || defined( DRAGONFLY )
setenv
(
"LC_ALL"
,
locale_buf
,
1
);
#else
setenv
(
"LC_ALL"
,
locale_buf
);
#endif
}
if
(
getenv
(
"LC_ALL"
)
)
_setenv
(
"LC_ALL"
,
locale_buf
);
if
(
getenv
(
"LC_CTYPE"
)
)
{
#if defined( FREEBSD ) || defined( NETBSD ) || defined( MACOSX ) || \
defined( AIX ) || defined( OPENBSD ) || defined( DRAGONFLY )
setenv
(
"LC_CTYPE"
,
locale_buf
,
1
);
#else
setenv
(
"LC_CTYPE"
,
locale_buf
);
#endif
}
if
(
getenv
(
"LC_CTYPE"
)
)
_setenv
(
"LC_CTYPE"
,
locale_buf
);
if
(
getenv
(
"LANG"
)
)
{
#if defined( FREEBSD ) || defined( NETBSD ) || defined( MACOSX ) || \
defined( AIX ) || defined( OPENBSD) || defined( DRAGONFLY )
setenv
(
"LC_CTYPE"
,
locale_buf
,
1
);
#else
setenv
(
"LANG"
,
locale_buf
);
#endif
}
if
(
getenv
(
"LANG"
)
)
_setenv
(
"LANG"
,
locale_buf
);
}
return
0
;
...
...
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