Fixed an issue where query tool is crashing on macOS 15.4 due to a locale issue. #8623
parent
af6c1a24cf
commit
73fefb8603
|
|
@ -50,4 +50,5 @@ Bug fixes
|
|||
| `Issue #8577 <https://github.com/pgadmin-org/pgadmin4/issues/8577>`_ - Fixed an issue where the upgrade_check API returned an unexpected keyword argument 'cafile' due to changes in the urllib package supporting Python v3.13.
|
||||
| `Issue #8597 <https://github.com/pgadmin-org/pgadmin4/issues/8597>`_ - Fixed an issue where delete/rename was done on wrong file after sorting in Storage Manager.
|
||||
| `Issue #8602 <https://github.com/pgadmin-org/pgadmin4/issues/8602>`_ - Fixed an XSS vulnerability issue in the Query Tool and View/Edit Data (CVE-2025-2946).
|
||||
| `Issue #8603 <https://github.com/pgadmin-org/pgadmin4/issues/8603>`_ - Fixed a remote code execution issue in the Query Tool and Cloud Deployment (CVE-2025-2945).
|
||||
| `Issue #8603 <https://github.com/pgadmin-org/pgadmin4/issues/8603>`_ - Fixed a remote code execution issue in the Query Tool and Cloud Deployment (CVE-2025-2945).
|
||||
| `Issue #8623 <https://github.com/pgadmin-org/pgadmin4/issues/8623>`_ - Fixed an issue where query tool is crashing on macOS 15.4 due to a locale issue.
|
||||
|
|
|
|||
|
|
@ -516,8 +516,8 @@ def utils():
|
|||
if current_app.PGADMIN_RUNTIME:
|
||||
import locale
|
||||
try:
|
||||
locale_info = locale.getdefaultlocale()
|
||||
if len(locale_info) > 0:
|
||||
locale_info = locale.getlocale()
|
||||
if len(locale_info) > 0 and locale_info[0] != 'C':
|
||||
default_locale = locale_info[0].replace('_', '-')
|
||||
except Exception:
|
||||
current_app.logger.debug('Failed to get the default locale.')
|
||||
|
|
|
|||
Loading…
Reference in New Issue