[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-commits
Subject:    [haiku-commits] haiku: hrev56941 - src/system/libroot/posix/locale
From:       waddlesplash <waddlesplash () gmail ! com>
Date:       2023-04-25 19:55:56
Message-ID: 20230425195556.2F5413FEA2 () turing ! freelists ! org
[Download RAW message or body]

hrev56941 adds 1 changeset to branch 'master'
old head: 419abdb265a9916260724b6c8a4247795f5f7943
new head: 3c51bd6a2bcfdd32fd09ce0f9a1fcb771296fd24
overview: https://git.haiku-os.org/haiku/log/?qt=range&q=3c51bd6a2bcf+%5E419abdb265a9

----------------------------------------------------------------------------

3c51bd6a2bcf: libroot: Fix initialization of LocaleNumericDataBridge.
  
  We need to store the isGlobal value, so that the destructor
  can take care of unsetting the glibc locale properly.
  
  It seems this has been broken since d338200e2b7c03c7aa392598b8612d4e9afa1841.
  
  Fixes #18344 and probably #18336.

                              [ Augustin Cavalier <waddlesplash@gmail.com> ]

----------------------------------------------------------------------------

Revision:    hrev56941
Commit:      3c51bd6a2bcfdd32fd09ce0f9a1fcb771296fd24
URL:         https://git.haiku-os.org/haiku/commit/?id=3c51bd6a2bcf
Author:      Augustin Cavalier <waddlesplash@gmail.com>
Date:        Tue Apr 25 19:55:42 2023 UTC

Ticket:      https://dev.haiku-os.org/ticket/18336
Ticket:      https://dev.haiku-os.org/ticket/18344

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 1 deletion(-)
src/system/libroot/posix/locale/LocaleDataBridge.cpp | 3 ++-

----------------------------------------------------------------------------

diff --git a/src/system/libroot/posix/locale/LocaleDataBridge.cpp \
b/src/system/libroot/posix/locale/LocaleDataBridge.cpp index 140650fddc..306a5dd54c \
                100644
--- a/src/system/libroot/posix/locale/LocaleDataBridge.cpp
+++ b/src/system/libroot/posix/locale/LocaleDataBridge.cpp
@@ -89,7 +89,8 @@ LocaleMonetaryDataBridge::LocaleMonetaryDataBridge()
 LocaleNumericDataBridge::LocaleNumericDataBridge(bool isGlobal)
 	:
 	posixLocaleConv(&gPosixLocaleConv),
-	glibcNumericLocale(&glibcNumericLocaleData)
+	glibcNumericLocale(&glibcNumericLocaleData),
+	isGlobal(isGlobal)
 {
 
 	memcpy(glibcNumericLocale, _NL_GLOBAL_DATA(GLIBC_LC_NUMERIC),


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic