CVS commit: pkgsrc/mk/platform

"Thomas Klausner" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.cvs
Message-ID <[email protected]>
Module Name:	pkgsrc
Committed By:	wiz
Date:		Mon Aug 24 21:40:17 UTC 2026

Modified Files:
	pkgsrc/mk/platform: NetBSD.mk

Log Message:
mk: always set LC_CTYPE to a UTF-8 locale on NetBSD

This fixes extraction of tar files with UTF-8 names on -current.

See today's thread "Re: CVS commit: src/external/bsd/libarchive/dist/libarchive"
on tech-userlevel for details.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 pkgsrc/mk/platform/NetBSD.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(unnamed) (text/x-diff, 775 B)
Modified files:

Index: pkgsrc/mk/platform/NetBSD.mk
diff -u pkgsrc/mk/platform/NetBSD.mk:1.89 pkgsrc/mk/platform/NetBSD.mk:1.90
--- pkgsrc/mk/platform/NetBSD.mk:1.89	Fri Jan  9 15:59:38 2026
+++ pkgsrc/mk/platform/NetBSD.mk	Mon Aug 24 21:40:17 2026
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.89 2026/01/09 15:59:38 wiz Exp $
+# $NetBSD: NetBSD.mk,v 1.90 2026/08/24 21:40:17 wiz Exp $
 #
 # Variable definitions for the NetBSD operating system.
 
@@ -16,8 +16,10 @@ TYPE?=		type				# Shell builtin
 # pax-as-tar, found on <=8, and optionally later, fails on many archives.
 EXTRACT_USING?=	bsdtar
 
-.if ${OPSYS_VERSION} < 090000
+.if ${OPSYS_VERSION} < 100000
 EXTRACT_ENV+=	LC_CTYPE=en_US.UTF-8
+.else
+EXTRACT_ENV+=	LC_CTYPE=C.UTF-8
 .endif
 
 USERADD?=	/usr/sbin/useradd
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.