From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 276FF385841E for ; Mon, 23 Oct 2023 15:16:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 276FF385841E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 276FF385841E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698074219; cv=none; b=xiCnbCEbG9rqzDWJhym68YpeZm2JSu2QM0PKx9iBKyHg8BlK4vS+5zXK4j/50QPgSvuemOA4HCfY6qacVpNMjqCgSd/5nSQYm6188H1lIxHH5mRHKJhCn4jDdyirIAZt39tkTh53McdnFhrJZcW/DYgAK9BZJ6cSkrjMf2Kc0OA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698074219; c=relaxed/simple; bh=J1ZCdBEzCjdkTBSWe/zPuPi7R/1+0lW6+oidc5Az41Q=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=g74td1/+qZKNykj7a4iI5YXHCcjiqBajOwi3taTVJ/RUyC8h35MKauiMRJ7b4L6fO0hRpdNQXFZMfit++6ynC6od30s5TyjXh2+U2nTaPQBJbeRUPBVh+3QWQdLxndlGweVfzbMK4fkmqst0+dmVDJnT762ooosc84XzLaH3/po= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698074217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I3thpMLE5xLFjZoJEMb9nT0KL3GWZ/1FXfm8UUuWKmQ=; b=ckdBZDzKqHSWfusxvB+wMopvgmEJJCEaj05Mkj3mBW5k+USoVFYWDxsNHQBj1RCrB7UE1D 4Z4m4hv0h0tK5sg3FvsV+Co/CNi4pN3Z95yvE2ssWo10uxnrpiXa9ZPh4kRpPezZtxmq9N x8EqQ3cG9kOySB0oAOLSmwVVW3AAdmM= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-605-AGkQvDtpM0qo-eG5EHdfJA-1; Mon, 23 Oct 2023 11:16:56 -0400 X-MC-Unique: AGkQvDtpM0qo-eG5EHdfJA-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-32d879cac50so1590788f8f.0 for ; Mon, 23 Oct 2023 08:16:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698074215; x=1698679015; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=I3thpMLE5xLFjZoJEMb9nT0KL3GWZ/1FXfm8UUuWKmQ=; b=ZEx6LcPzwy/7htk57LtSeHwBv5ptUXcqwrXu1wohuB+gd8AhfpMqjddJh2nrC4mSf2 QL37qW65RyH7dDm38b7qcRg7+DJhuTIsNPc8CJvptNQYd8PgqbLPUrZtSRN/CKCVZ8LJ +vb40D+NtbgwKxOaoJ7mUj/pUCMz9G9aUC/6HuO2gRvq8yS2b38Q1h96LfSk4oS+Bswk RLoOxeUfVyJpw5PS/OLo1RU20x+35dHfHV5oOuHDkkdPifJTwpYh8vI84dWTlvHK4vxP wflWH4YXeiGkVyHiJJXCjHWRTFbSIRXJf2MIublfH6iadPLDeM+GQuUILjtqhpJBi7Zq fPfA== X-Gm-Message-State: AOJu0YzkJzvnVoWqI4L/v/3dY4E7JOyr2O/djCNZBPElZtjIT0n4jKN6 FLOR2e3NN+jauX1K/mLdc/AmD+j6kt3WNoWshnV7sbXfi9NV0LoDkmqvFrGzCigMh8wZkegbBTN M+OVYeW76xXgtgwwwoKapBbw= X-Received: by 2002:adf:f4c9:0:b0:32d:b2e0:ed76 with SMTP id h9-20020adff4c9000000b0032db2e0ed76mr8099895wrp.49.1698074214889; Mon, 23 Oct 2023 08:16:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPffwBvtNIegFb6iV8KN1StGfH6ArOTvqa4ubRL+uI6hMUe9107bK73BDIIgziN4yO4c1PdqpTFwnwANNE/Dw= X-Received: by 2002:adf:f4c9:0:b0:32d:b2e0:ed76 with SMTP id h9-20020adff4c9000000b0032db2e0ed76mr8099878wrp.49.1698074214641; Mon, 23 Oct 2023 08:16:54 -0700 (PDT) MIME-Version: 1.0 References: <20230125210636.2960049-1-ben.boeckel@kitware.com> <20230125210636.2960049-3-ben.boeckel@kitware.com> In-Reply-To: <20230125210636.2960049-3-ben.boeckel@kitware.com> From: David Malcolm Date: Mon, 23 Oct 2023 11:16:43 -0400 Message-ID: Subject: Re: [PATCH v5 2/5] libcpp: add a function to determine UTF-8 validity of a C string To: Ben Boeckel Cc: gcc-patches@gcc.gnu.org, jason@redhat.com, nathan@acm.org, fortran@gcc.gnu.org, gcc@gcc.gnu.org, brad.king@kitware.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Jan 25, 2023 at 4:09=E2=80=AFPM Ben Boeckel via Gcc wrote: > > This simplifies the interface for other UTF-8 validity detections when a > simple "yes" or "no" answer is sufficient. > > libcpp/ > > * charset.cc: Add `_cpp_valid_utf8_str` which determines whether > a C string is valid UTF-8 or not. > * internal.h: Add prototype for `_cpp_valid_utf8_str`. > > Signed-off-by: Ben Boeckel [going through patches in patchwork] What's the status of this patch; did this ever get committed? I see that Jason preapproved this via his review of "[PATCH v3 2/3] libcpp: add a function to determine UTF-8 validity of a C string" Thanks Dave