From nobody Fri Dec 17 08:43:52 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 094CA18EA206; Fri, 17 Dec 2021 08:43:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JFjFN5Q71z3kVf; Fri, 17 Dec 2021 08:43:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9A2A618C98; Fri, 17 Dec 2021 08:43:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BH8hqR9044324; Fri, 17 Dec 2021 08:43:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BH8hqfG044323; Fri, 17 Dec 2021 08:43:52 GMT (envelope-from git) Date: Fri, 17 Dec 2021 08:43:52 GMT Message-Id: <202112170843.1BH8hqfG044323@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Baptiste Daroussin Subject: git: be0236ebd857 - main - tzsetup: Fix unicode support List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: be0236ebd857579e745cd13fef3c96c406065de3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639730632; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mX1O9IP5afHXX1BbRLknxH3JZ2M6fF8lXKJqGdzCxT4=; b=QduY9wL+Qxylh0zppv5unGX/LFBX0hOAAcuCcpQX2xbRF39h9gxThlji7GJtqr92cRa+rD BWRLs1jL8wPCYHAZWHgcOX5Bg3bY6FholN8iAqhxmkX5qlo5B1tElGu0N2Gj2PwBNstiMx /7SsAWX7nnw+B1xTwhLJqHSSq/0H0ReLJ87yPTmjHyYbMV0dvlzmeQUWWfJfpX3zdaOjrK trL3NByNV/6hwiHFWAT3GwaCzpNJ2o7vUEgwhJePGokDI/LOsLFuH8OYoejEGhFbZjKAGA yKI7JJN1XBlmAeRlzHmVXUQy7U6GOBpXIdgk8yspgDJzkmt7yO3xyycnK9pNPw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639730632; a=rsa-sha256; cv=none; b=kXCqozOO2+IT8lSynWMxlCk/gRkqWHZ6/3AVikBIZgA6WO5KZCho+efaToBKm2ybGs93al Sdf85HveIsQKjISFgQmz/EiulvNPYRcrpqATbpHRr+qjR/pMCdrkWRXiU3Xdf32KQEIgRA vBoaXNbYf+OBwsvnVny+VhtAb//FenGaaBP97ICrPBB/Lu9xRvIDlhQv8qCsxVUe7oTnoe ll2/Fi8cQ+P5QnEKOSs5B+hTsqIvfbdGvGk0THG9fO9xSFEJWO7gzi9pkgMBgGPB8R8xbC f8/fzAUhRScGbifwmxXVFke3T+Ri7Kssuo0aKGj0LfH+TT7Yw8f4xRXdMzJzXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=be0236ebd857579e745cd13fef3c96c406065de3 commit be0236ebd857579e745cd13fef3c96c406065de3 Author: Alfonso Siciliano AuthorDate: 2021-12-17 08:25:07 +0000 Commit: Baptiste Daroussin CommitDate: 2021-12-17 08:25:07 +0000 tzsetup: Fix unicode support Differential revision: https://reviews.freebsd.org/D33532 --- usr.sbin/tzsetup/tzsetup.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c index d271d6377347..5b77d6016035 100644 --- a/usr.sbin/tzsetup/tzsetup.c +++ b/usr.sbin/tzsetup/tzsetup.c @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #ifdef HAVE_BSDDIALOG #include +#include #endif #define _PATH_ZONETAB "/usr/share/zoneinfo/zone1970.tab" @@ -868,6 +869,10 @@ main(int argc, char **argv) skiputc = 0; +#ifdef HAVE_BSDDIALOG + setlocale(LC_ALL, ""); +#endif + /* Default skiputc to 1 for VM guests */ if (sysctlbyname("kern.vm_guest", vm_guest, &len, NULL, 0) == 0 && strcmp(vm_guest, "none") != 0)