Skip to content

Commit 73fefb8

Browse files
Fixed an issue where query tool is crashing on macOS 15.4 due to a locale issue. #8623
1 parent af6c1a2 commit 73fefb8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/en_US/release_notes_9_2.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ Bug fixes
5050
| `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.
5151
| `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.
5252
| `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).
53-
| `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).
53+
| `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).
54+
| `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.

web/pgadmin/browser/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,8 @@ def utils():
516516
if current_app.PGADMIN_RUNTIME:
517517
import locale
518518
try:
519-
locale_info = locale.getdefaultlocale()
520-
if len(locale_info) > 0:
519+
locale_info = locale.getlocale()
520+
if len(locale_info) > 0 and locale_info[0] != 'C':
521521
default_locale = locale_info[0].replace('_', '-')
522522
except Exception:
523523
current_app.logger.debug('Failed to get the default locale.')

0 commit comments

Comments
 (0)