From patchwork Mon Jul 31 13:56:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanley Lancaster X-Patchwork-Id: 73381 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 04443385840B for ; Mon, 31 Jul 2023 13:57:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 04443385840B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690811836; bh=PSvkDYwJh2VPwxeb0oh+gUNPbAaU/jgIjYyDs4wmMWU=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=VYw86yMdQRhc4Tb7PdnRSvQxbt/Zls1gYSZsO4jKyr/xjC/lb+uDy5ppWsFz4fyUP dx3uimdtaT02fcXr9ksZPu0VYIEeRJhZX9eZgWDQM6cptqCVE8EPuwm/P9aZP5Pzdc vQO8xPP+3C15+ldWoP6hbCQb+l7erhtgMD/GSviA= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-vk1-xa32.google.com (mail-vk1-xa32.google.com [IPv6:2607:f8b0:4864:20::a32]) by sourceware.org (Postfix) with ESMTPS id BD5553858CD1 for ; Mon, 31 Jul 2023 13:56:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BD5553858CD1 Received: by mail-vk1-xa32.google.com with SMTP id 71dfb90a1353d-486198c70adso1467916e0c.0 for ; Mon, 31 Jul 2023 06:56:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690811813; x=1691416613; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PSvkDYwJh2VPwxeb0oh+gUNPbAaU/jgIjYyDs4wmMWU=; b=HOt/CrSfL+ujvb1uho6+O6YIxmF6kxyQZ307BX9bhePr6ZRww37hyeSsj9CZTZj/+h faYYlnIR3mK/zzyVZkFVc1QVvZqcf2vyWC2sSZsH2l9M3zy+EwUSQE34xvVYyYBrLFBx UlOsmSa5EPTUfUbNb2yEUPBqYIW2F8ScexB8hz4svROT62dnL36/yABGs8rL/PtSe2Km eKG2bKsGzPUTNPaCSrjDDuCWV3t5a2zukc0YUiPVF2kVF+A0kz3I9BY8jE38TSAhsB7U 9aSGq2dWq1WDYUcsx7Asckf9/QhXzNh+7A0g4vJmo0dXHbgNe7rFrPWHkOJBVvEizE6q Md7w== X-Gm-Message-State: ABy/qLbnamuuooJ3ild/XAqiUzNvND5uqg3hk6L6Vc7hqCnaqU6J38fT PLdIh4muPHrZ+raZXt1ey7evx64EKfylSw== X-Google-Smtp-Source: APBJJlHJl+eA8yzOOPcqN3syhJ9X9/qk3hcN0SB8/4D7u7tQD42gfIlJQgIl8f7+QbOfTfP9IwR0Tw== X-Received: by 2002:a1f:c8c7:0:b0:471:17be:ba8d with SMTP id y190-20020a1fc8c7000000b0047117beba8dmr50674vkf.3.1690811812900; Mon, 31 Jul 2023 06:56:52 -0700 (PDT) Received: from slancast.remote.csb ([69.71.12.177]) by smtp.gmail.com with ESMTPSA id p6-20020a0cf546000000b0063cf49c35f1sm3802366qvm.35.2023.07.31.06.56.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 06:56:52 -0700 (PDT) To: libc-alpha@sourceware.org Cc: Stanley Lancaster Subject: [PATCH] %Z Fix [PATCH v5] Date: Mon, 31 Jul 2023 08:56:22 -0500 Message-Id: <20230731135621.14751-1-lancasterharp@gmail.com> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Stanley Lancaster via Libc-alpha From: Stanley Lancaster Reply-To: Stanley Lancaster Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" --- time/strptime_l.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/time/strptime_l.c b/time/strptime_l.c index 2382defc92..1b84065c19 100644 --- a/time/strptime_l.c +++ b/time/strptime_l.c @@ -776,7 +776,10 @@ __strptime_internal (const char *rp, const char *fmt, struct tm *tmp, /* Read timezone but perform no conversion. */ /* we recognize the format [-+a-zA-Z0-9]{3,} */ const char* start_rp = rp; - while ((*rp >= 'A' && *rp <= 'Z') || (*rp >= 'a' && *rp <= 'z') || (*rp >= '0' && *rp <= '9')) + + while ((*rp >= 'A' && *rp <= 'Z') || + (*rp >= 'a' && *rp <= 'z') || + (*rp >= '0' && *rp <= '9')) rp++; if (start_rp+3 < rp) return NULL;