[Git][debian-gis-team/josm-installer][master] 2 commits: Updated linux directory to r19637.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Thu Nov 5 13:35:45 GMT 2026



Bas Couwenberg pushed to branch master at Debian GIS Project / josm-installer


Commits:
361be9fa by Bas Couwenberg at 2026-11-05T14:32:34+01:00
Updated linux directory to r19637.

- - - - -
3b7ac7fb by Bas Couwenberg at 2026-11-05T14:32:45+01:00
Set distribution to unstable.

- - - - -


4 changed files:

- debian/changelog
- josm
- linux/latest/usr/bin/josm-latest
- linux/tested/usr/bin/josm


Changes:

=====================================
debian/changelog
=====================================
@@ -1,8 +1,9 @@
-josm-installer (0.0.9+svn19519) UNRELEASED; urgency=medium
+josm-installer (0.0.9+svn19637) unstable; urgency=medium
 
   * Bump Standards-Version to 4.7.4, no changes.
+  * Updated linux directory to r19637.
 
- -- Bas Couwenberg <sebastic at debian.org>  Sat, 04 Apr 2026 10:12:35 +0200
+ -- Bas Couwenberg <sebastic at debian.org>  Thu, 05 Nov 2026 14:32:35 +0100
 
 josm-installer (0.0.8+svn19519) unstable; urgency=medium
 


=====================================
josm
=====================================
@@ -68,6 +68,19 @@ if [ -f "/etc/default/${JOSM_VERSION}" ]; then
     . "/etc/default/${JOSM_VERSION}"
 fi
 
+# Java decodes file names with the character set of the locale, and -Dsun.jnu.encoding
+# cannot override it. If the locale is C/POSIX, or cannot be set at all - typically a
+# UTF-8 LANG whose locale is not installed, as in a Flatpak sandbox - file names are
+# decoded as ASCII and opening a folder that holds a non-ASCII name fails with
+# InvalidPathException. Fall back to C.UTF-8 then, which is built into glibc 2.35 and
+# later. This does not change the language of JOSM: when the locale cannot be set, Java
+# already falls back to English. LC_ALL is needed, as setlocale() fails as a whole if
+# any category names a locale that is not installed.
+if { [ -n "$(locale 2>&1 >/dev/null)" ] || [ "$(locale charmap 2>/dev/null)" = "ANSI_X3.4-1968" ]; } \
+        && [ -z "$(LC_ALL=C.UTF-8 locale 2>&1 >/dev/null)" ]; then
+    export LC_ALL=C.UTF-8
+fi
+
 # If there is more than 8G ram, we can use up to 75% of the memory while still leaving 2G for other things.
 if [ "$(LC_ALL=C LANG=C free --mega | grep '^Mem:' | awk '{print $2}')" -gt 8192 ]; then
     # But don't set anything if JAVA_OPTS is already set.


=====================================
linux/latest/usr/bin/josm-latest
=====================================
@@ -59,6 +59,19 @@ if [ -f "/etc/default/${JOSM_VERSION}" ]; then
     . "/etc/default/${JOSM_VERSION}"
 fi
 
+# Java decodes file names with the character set of the locale, and -Dsun.jnu.encoding
+# cannot override it. If the locale is C/POSIX, or cannot be set at all - typically a
+# UTF-8 LANG whose locale is not installed, as in a Flatpak sandbox - file names are
+# decoded as ASCII and opening a folder that holds a non-ASCII name fails with
+# InvalidPathException. Fall back to C.UTF-8 then, which is built into glibc 2.35 and
+# later. This does not change the language of JOSM: when the locale cannot be set, Java
+# already falls back to English. LC_ALL is needed, as setlocale() fails as a whole if
+# any category names a locale that is not installed.
+if { [ -n "$(locale 2>&1 >/dev/null)" ] || [ "$(locale charmap 2>/dev/null)" = "ANSI_X3.4-1968" ]; } \
+        && [ -z "$(LC_ALL=C.UTF-8 locale 2>&1 >/dev/null)" ]; then
+    export LC_ALL=C.UTF-8
+fi
+
 # If there is more than 8G ram, we can use up to 75% of the memory while still leaving 2G for other things.
 if [ "$(LC_ALL=C LANG=C free --mega | grep '^Mem:' | awk '{print $2}')" -gt 8192 ]; then
     # But don't set anything if JAVA_OPTS is already set.


=====================================
linux/tested/usr/bin/josm
=====================================
@@ -59,6 +59,19 @@ if [ -f "/etc/default/${JOSM_VERSION}" ]; then
     . "/etc/default/${JOSM_VERSION}"
 fi
 
+# Java decodes file names with the character set of the locale, and -Dsun.jnu.encoding
+# cannot override it. If the locale is C/POSIX, or cannot be set at all - typically a
+# UTF-8 LANG whose locale is not installed, as in a Flatpak sandbox - file names are
+# decoded as ASCII and opening a folder that holds a non-ASCII name fails with
+# InvalidPathException. Fall back to C.UTF-8 then, which is built into glibc 2.35 and
+# later. This does not change the language of JOSM: when the locale cannot be set, Java
+# already falls back to English. LC_ALL is needed, as setlocale() fails as a whole if
+# any category names a locale that is not installed.
+if { [ -n "$(locale 2>&1 >/dev/null)" ] || [ "$(locale charmap 2>/dev/null)" = "ANSI_X3.4-1968" ]; } \
+        && [ -z "$(LC_ALL=C.UTF-8 locale 2>&1 >/dev/null)" ]; then
+    export LC_ALL=C.UTF-8
+fi
+
 # If there is more than 8G ram, we can use up to 75% of the memory while still leaving 2G for other things.
 if [ "$(LC_ALL=C LANG=C free --mega | grep '^Mem:' | awk '{print $2}')" -gt 8192 ]; then
     # But don't set anything if JAVA_OPTS is already set.



View it on GitLab: https://salsa.debian.org/debian-gis-team/josm-installer/-/compare/4e1a3bdd13e1cbfdc8c2332ea68e2a8a05a2e41e...3b7ac7fba26b679c0f39f27f3281098343b143fc

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/josm-installer/-/compare/4e1a3bdd13e1cbfdc8c2332ea68e2a8a05a2e41e...3b7ac7fba26b679c0f39f27f3281098343b143fc
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20261105/b8b0eb3d/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list