From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_GREY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id D59691F670 for ; Mon, 25 Oct 2021 05:39:28 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 6BB94120ABC; Mon, 25 Oct 2021 14:39:26 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 337C5120A88 for ; Mon, 25 Oct 2021 14:39:23 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sendgrid.me; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to; s=smtpapi; bh=FsneEJJKFTVuFloRrkM/5MRUmkGBJHgHcrQSanx83yg=; b=AMn0fbM30ujMtb7A5EXvrK9BdUH/iVyP5yYuAp/XWmYJtxRQBxHaxV2H20LB7eX7jE0l fzr9sAJN6bxWsJhzm4NGYhfaryrfJnr/Ji6MByWrrpieIF7jciEyYqZzbBQ+vYFUUAzEzg AQK5YrvBFxFLNDlMG/Dq0KAfG6oUY4t18= Received: by filterdrecv-7bc86b958d-ctgkz with SMTP id filterdrecv-7bc86b958d-ctgkz-1-61764304-30 2021-10-25 05:39:17.003703654 +0000 UTC m=+4605537.494710620 Received: from herokuapp.com (unknown) by ismtpd0163p1mdw1.sendgrid.net (SG) with ESMTP id UfQuGEdvS-Wc8H9MsU8_aA for ; Mon, 25 Oct 2021 05:39:16.906 +0000 (UTC) Date: Mon, 25 Oct 2021 05:39:17 +0000 (UTC) From: "nobu (Nobuyoshi Nakada)" Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 18254 X-Redmine-Issue-Author: byroot X-Redmine-Sender: nobu X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 81985 X-SG-EID: =?us-ascii?Q?rA5eEsXeCy+asKowYcicHxhOSUaOWYD+XnPnBc7LFC8Re9tNQ4Sv5BA=2FOz+glG?= =?us-ascii?Q?+50K4steq4vSjkkyeSAt=2FQpZK6mQgZdK22n=2FlxG?= =?us-ascii?Q?4Fre1AWCE9rwpKlNNLMIgge9dh6qFJZDLVoQII0?= =?us-ascii?Q?Wu+8fuKWQCuqUIjtGzRt09t+mQ3M70tm4O0jfnU?= =?us-ascii?Q?JGdVWVcSl43zgTrTjL031U3DGlDNzlo4Uzeptrc?= =?us-ascii?Q?4J9ZAd4glW9XAVvWY4MW+AIdjmpXMG6YygftcmB?= =?us-ascii?Q?2zODaBdOLwmP4AN+Hsj2Q=3D=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 105774 Subject: [ruby-core:105774] [Ruby master Feature#18254] Add an `offset` parameter to String#unpack and String#unpack1 X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Reply-To: Ruby developers Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" SXNzdWUgIzE4MjU0IGhh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