Skip to content

Commit

Permalink
www/netsurf: Fix crash on preferences dialog with certain languages
Browse files Browse the repository at this point in the history
This happens with certain languages like pl_PL.UTF-8.

PR:	263498
  • Loading branch information
saper authored and neelchauhan committed Apr 28, 2022
1 parent 457cf78 commit 7f0f07a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion www/netsurf/Makefile
Expand Up @@ -2,7 +2,7 @@

PORTNAME= netsurf
PORTVERSION= 3.10
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= www
MASTER_SITES= http://download.netsurf-browser.org/netsurf/releases/source/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
Expand Down
2 changes: 1 addition & 1 deletion www/netsurf/files/patch-frontends_gtk_preferences.c
Expand Up @@ -22,7 +22,7 @@
+ res = nsgtk_builder_new_from_resname(ui_lang, &preferences_builder);
+ if (res != NSERROR_OK) {
+ //LANG not found, so fall back to english i guess
+ res = nsgtk_builder_new_from_resname("enoption", &preferences_builder);
+ res = nsgtk_builder_new_from_resname("enoptions", &preferences_builder);
+ }
+ if (res != NSERROR_OK) {
+ NSLOG(netsurf, INFO, "Preferences UI builder init failed");
Expand Down

0 comments on commit 7f0f07a

Please sign in to comment.