X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E87783858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1704005891; bh=0gwfovsbl4NRip4G2napvRMcJG6GbCKdxuMX5Sv8BEE=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=vyhgcgr1ezK7KuCmwV9p5x1/eigCFZ1DHhMAQFqHyvWxaZqw72uMzy2lW8CbdDhcx az+bMkS/5fwVogswS+UVZ6ELpL4FqjIezGhyCjuOwZzEnhFSHcZ2t+YmFg6MMxvh8p lmB7zCUOsQE8MUhyX/k2WWmS4B//L7mfTzfAtaXQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6D8FB3858D1E ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6D8FB3858D1E ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704005838; cv=none; b=FfCoZT6SoJ0BmEx7avS+TU8chz2YYAcjgcTDeI8LOLJ5WILpBjj6RhTbksbaX2So24/Wod+jfJHK6Hxh9HWW8ZN2ABwy2X51ViZlSKzXd5/LrKrQFF4fIqaSVoXJK0V8WY5m6GuneFR7Yocfp9p+PpQcxW7fWH4gQ720spv+nm0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704005838; c=relaxed/simple; bh=tFfpuF7lqigKNXtV8QbqaqBkgGhO+QkALjjK1WjLLOY=; h=Date:From:To:Subject:Message-Id:Mime-Version; b=vyGTVz0/8wRI8qKI9Ho4GfrPgZPfvF3QtdRkLZZ+bWTfEemwyOV34oHanJamjk0dqtQEkaYBBfWufORj5UKrpzyXnz+xOW01L2dgzssUFCP86ASkqkm/TEt+5H/5XVRvziJJHmnEP1EJY5twbHtTVIfJEtu3xgiDz0D0w6VB7LM= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Sun, 31 Dec 2023 15:57:12 +0900 To: cygwin AT cygwin DOT com Subject: Re: std::runtime_error on std::locale("") Message-Id: <20231231155712.918066b5bbad233fca2c08a2@nifty.ne.jp> In-Reply-To: <20230927195039.e62f7482898ab5615cc1605b@nifty.ne.jp> References: <20230922011204 DOT bb166498090e6cbe163349f3 AT nifty DOT ne DOT jp> <87o7huzos2 DOT fsf AT Otto DOT invalid> <20230923172359 DOT d854a5a98afbc44beaf50c78 AT nifty DOT ne DOT jp> <20230927195039 DOT e62f7482898ab5615cc1605b AT nifty DOT ne DOT jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Sun__31_Dec_2023_15_57_12_+0900_78LTqiKq6qcPKu_f" X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, 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: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Takashi Yano via Cygwin Reply-To: Takashi Yano Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" This is a multi-part message in MIME format. --Multipart=_Sun__31_Dec_2023_15_57_12_+0900_78LTqiKq6qcPKu_f Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 27 Sep 2023 19:50:39 +0900 Takashi Yano via Cygwin wrote: > Hi Achim, > > On Sat, 23 Sep 2023 17:23:59 +0900 > Takashi Yano via Cygwin wrote: > > On Fri, 22 Sep 2023 08:48:45 +0200 > > ASSI wrote: > > > Takashi Yano via Cygwin writes: > > > > I wonder why the following code throws std::runtime_error > > > > even though the LC_ALL is set to valid locale other than "C". > > > > This does not occur only when LC_ALL is set to "C". > > > > > > This functionality is currently only supported for Glibc targets in > > > libstdc++. I seem to remember that I've looked into this some time ago, > > > but there didn't seem to be an easy way of enabling it for Cygwin at > > > that time. > > > > Thanks for the answer. > > > > It might not be an easy way, but I tried to enabling the locale > > feature for libstdc++. > > > > Please try: > > > > 1) Run cygport gcc prep > > 2) Remove libstdc++-v3/config/locale/generic > > 3) Copy libstdc++-v3/config/locale/gnu to libstdc++-v3/config/locale/generic > > 4) Apply patches attached to the working source directory. > > 5) Run cygport gcc compile > > > > I also tried to automate above steps in gcc.cygport. > > > > Further, I tested and confirmed that a few test cases works as expected. > > > > What do you think of this idea? > > I have a new revised draft patch. The patch attached is against > the HEAD of upstream gcc repository. However, it can be applied > to 11.4.0 as well if s/c++11/c++98/g. > > This is not a last-minute job like last time, but a full rework. > > Any advice or comment would be appreciated. Some bugs have been fixed. Please review v3 patch attached. -- Takashi Yano --Multipart=_Sun__31_Dec_2023_15_57_12_+0900_78LTqiKq6qcPKu_f Content-Type: application/octet-stream; name="v3-0001-libstdc-Implement-most-of-locale-features-for-new.patch" Content-Disposition: attachment; filename="v3-0001-libstdc-Implement-most-of-locale-features-for-new.patch" Content-Transfer-Encoding: base64 RnJvbSA2ZjRkOTM3YTc3ZDQ4YTQ3ZTc4Mjc3YjcxZWQwOWIzMTQ3N2Y2MGM2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBUYWthc2hpIFlhbm8gPHRha2FzaGkueWFub0BuaWZ0eS5uZS5q cD4KRGF0ZTogRnJpLCAyNCBOb3YgMjAyMyAwMDozNDo0OCArMDkwMApTdWJqZWN0OiBbUEFUQ0gg djNdIGxpYnN0ZGMrKzogSW1wbGVtZW50IG1vc3Qgb2YgbG9jYWxlIGZlYXR1cmVzIGZvciBuZX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UgKysKIGxpYnN0ZGMrKy12My9jb25maWcvbG9jYWxlL25ld2xpYi9j X2xvY2FsZS5jYyB8IDQwMiArKysrKysrKwogbGlic3RkYysrLXYzL2NvbmZpZy9sb2NhbGUvbmV3 bGliL2NfbG9jYWxlLmggIHwgMTAwICsrCiAuLi4vY29uZmlnL2xvY2FsZS9uZXdsaWIvY29kZWN2 dF9tZW1iZXJzLmNjICAgfCAyODggKysrKysrCiAuLi4vY29uZmlnL2xvY2FsZS9uZXdsaWIvY29s bGF0ZV9tZW1iZXJzLmNjICAgfCAgNzQgKysKIC4uLi9jb25maWcvbG9jYWxlL25ld2xpYi9jdHlw ZV9tZW1iZXJzLmNjICAgICB8ICA2MCArLQogLi4uL2NvbmZpZy9sb2NhbGUvbmV3bGliL21lc3Nh Z2VzX21lbWJlcnMuY2MgIHwgMTc4ICsrKysKIC4uLi9jb25maWcvbG9jYWxlL25ld2xpYi9tZXNz YWdlc19tZW1iZXJzLmggICB8IDE0OCArKysKIC4uLi9jb25maWcvbG9jYWxlL25ld2xpYi9tb25l dGFyeV9tZW1iZXJzLmNjICB8IDk0MiArKysrKysrKysrKysrKysrKysKIC4uLi9jb25maWcvbG9j YWxlL25ld2xpYi9udW1lcmljX21lbWJlcnMuY2MgICB8IDI3MyArKysrKwogLi4uL2NvbmZpZy9s b2NhbGUvbmV3bGliL3RpbWVfbWVtYmVycy5jYyAgICAgIHwgMzgxICsrKysrKysKIC4uLi9jb25m aWcvbG9jYWxlL25ld2xpYi90aW1lX21lbWJlcnMuaCAgICAgICB8ICA5MCArKwogLi4uL2NvbmZp Zy9vcy9uZXdsaWIvY3R5cGVfY29uZmlndXJlX2NoYXIuY2MgIHwgIDMyICstCiBsaWJzdGRjKyst djMvY29uZmlndXJlICAgICAgICAgICAgICAgICAgICAgICAgfCAgNjYgKy0KIC4uLi9pbmNsdWRl L2JpdHMvbG9jYWxlX2ZhY2V0c19ub25pby50Y2MgICAgICB8ICAgMSArCiBsaWJzdGRjKystdjMv c3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KKwl7CisJICBf X3YgPSAwLjA7CisJICBfX2VyciA9IGlvc19iYXNlOjpmYWlsYml0OworCX0KKyAgICAgIGVsc2Ug aWYgKF9fdiA9PSBudW1lcmljX2xpbWl0czxkb3VibGU+OjppbmZpbml0eSgpKQorCXsKKwkgIF9f diA9IG51bWVyaWNfbGltaXRzPGRvdWJsZT46Om1heCgpOworCSAgX19lcnIgPSBpb3NfYmFzZTo6 ZmFpbGJpdDsKKwl9CisgICAgICBlbHNlIGlmIChfX3YgPT0gLW51bWVyaWNfbGltaXRzPGRvdWJs ZT46OmluZmluaXR5KCkpCisJeworCSAgX192ID0gLW51bWVyaWNfbGltaXRzPGRvdWJsZT46Om1h eCgpOworCSAgX19lcnIgPSBpb3NfYmFzZTo6ZmFpbGJpdDsKKwl9CisgICAgfQorCisgIHRlbXBs YXRlPD4KKyAgICB2b2lkCisgICAgX19jb252ZXJ0X3RvX3YoY29uc3QgY2hhciogX19zLCBsb25n IGRvdWJsZSYgX192LCBpb3NfYmFzZTo6aW9zdGF0ZSYgX19lcnIsCisJCSAgIGNvbnN0IF9fY19s b2NhbGUmIF9fY2xvYykgdGhyb3coKQorICAgIHsKKyAgICAgIGNoYXIqIF9fc2FuaXR5OworICAg ICAgX192ID0gc3RydG9sZF9sKF9fcywgJl9fc2FuaXR5LCBfX2Nsb2MpOworCisgICAgICAvLyBf R0xJQkNYWF9SRVNPTFZFX0xJQl9ERUZFQ1RTCisgICAgICAvLyAyMy4gTnVtX2dldCBvdmVyZmxv dyByZXN1bHQuCisgICAgICBpZiAoX19zYW5pdHkgPT0gX19zIHx8ICpfX3Nhbml0eSAhPSAnXDAn KQorCXsKKwkgIF9fdiA9IDAuMGw7CisJICBfX2VyciA9IGlvc19iYXNlOjpmYWlsYml0OworCX0K KyAgICAgIGVsc2UgaWYgKF9fdiA9PSBudW1lcmljX2xpbWl0czxsb25nIGRvdWJsZT46OmluZmlu aXR5KCkpCisJeworCSAgX192ID0gbnVtZXJpY19saW1pdHM8bG9uZyBkb3VibGU+OjptYXgoKTsK KwkgIF9fZXJyID0gaW9zX2Jhc2U6OmZhaWxiaXQ7CisJfQorICAgICAgZWxzZSBpZiAoX192ID09 IC1udW1lcmljX2xpbWl0czxsb25nIGRvdWJsZT46OmluZmluaXR5KCkpCisJeworCSAgX192ID0g LW51bWVyaWNfbGltaXRzPGxvbmcgZG91YmxlPjo6bWF4KCk7CisJICBfX2VyciA9IGlvc19iYXNl OjpmYWlsYml0OworCX0KKyAgICB9CisKKyAgdm9pZAorICBsb2NhbGU6OmZhY2V0OjpfU19jcmVh dGVfY19sb2NhbGUoX19jX2xvY2FsZSYgX19jbG9jLCBjb25zdCBjaGFyKiBfX3MsCisJCQkJICAg IF9fY19sb2NhbGUgX19vbGQpCisgIHsKKyAgICBfX2Nsb2MgPSBuZXdsb2NhbGUoMSA8PCBMQ19B TEwsIF9fcywgX19vbGQpOworICAgIGlmIChfX2Nsb2MpCisgICAgICByZXR1cm47CisKKyAgICAv KiBOZXdsaWIgZG9lcyBub3Qgc3VwcG9ydCBsb2NhbGUgc3RyaWcgc3VjaCBhcworICAgICAgICJM Q19DVFlQRT1lbl9VUy5VVEY4O0xDX05VTUVSSUM9ZGVfREUuVVRGODsuLi4iICovCisgICAgY29u c3QgY2hhciAqX19wID0gX19zOworICAgIF9fY2xvYyA9IF9fb2xkOworICAgIGNoYXIgX19jYXRb Q0FURUdPUllfTEVOICsgMV0sIF9fbG9jW0VOQ09ESU5HX0xFTiArIDFdOworICAgIHdoaWxlICgy ID09IHNzY2FuZihfX3AsIEZNVF9MT0NBTEUsIF9fY2F0LCBfX2xvYykpCisgICAgICB7CisJc3Ry dWN0IHtjb25zdCBjaGFyICpfX2NhdDsgaW50IF9fbWFzazt9IF9fdGJsW05VTV9DQVRFR09SSUVT ICsgMV0gPQorCSAgeworCSAgICAgIHsiTENfQ1RZUEUiLCBMQ19DVFlQRV9NQVNLfSwKKwkgICAg ICB7IkxDX05VTUVSSUMiLCBMQ19OVU1FUklDX01B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ykpCisJeworCSAgY29uc3QgY2hhciAqX190Ymxb TlVNX0NBVEVHT1JJRVNdID0KKwkgICAgeworCSAgICAgICJMQ19DT0xMQVRFIiwKKwkgICAgICAi TENfQ1RZUEUiLAorCSAgICAgICJMQ19NT05FVEFSWSIsCisJICAgICAgIkxDX05VTUVSSUMiLAor CSAgICAgICJMQ19USU1FIiwKKwkgICAgICAiTENfTUVTU0FHRVMiCisJICAgIH07CisJICBmb3Ig KGludCBfX2kgPSAwOyBfX2kgPCBOVU1fQ0FURUdPUklFUzsgX19pKyspCisJICAgIGlmIChzdHJj bXAoX190YmxbX19pXSwgX19jYXQpID09IDApCisJICAgICAgeworCQlzdHJuY3B5KF9fYnVmW19f aV0sIF9fbG9jLCBzaXplb2YoX19idWZbX19pXSkpOworCQlfX2J1ZltfX2ldW0VOQ09ESU5HX0xF Tl0gPSAnXDAnOworCQlicmVhazsKKwkgICAgICB9CisJICBpZiAoKF9fcCA9IHN0cmNocihfX3As ICc7JykpID09IE5VTEwpCisJICAgIGJyZWFrOworCSAgX19wICsrOworCX0KKyAgICAgIGNoYXIg X19uZXdsb2NbKEVOQ09ESU5HX0xFTiArIDEpICogTlVNX0NBVEVHT1JJRVNdOworICAgICAgc3By aW50ZihfX25ld2xvYywgIiVzLyVzLyVzLyVzLyVzLyVzIiwKKwkgICAgICBfX2J1ZlswXSwgX19i dWZbMV0sIF9fYnVmWzJdLCBfX2J1ZlszXSwgX19idWZbNF0sIF9fYnVmWzVdKTsKKyAgICAgIF9f cmV0ID0gc2V0bG9jYWxlKF9fY2F0ZWdvcnksIF9fbmV3bG9jKTsKKworICAgIH0KKyAgcmV0dXJu IF9fcmV0OworfQorCituYW1lc3BhY2Ugc3RkIF9HTElCQ1hYX1ZJU0lCSUxJVFkoZGVmYXVsdCkK K3sKK19HTElCQ1hYX0JFR0lOX05BTUVTUEFDRV9WRVJTSU9OCisKKyAgY29uc3QgY2hhciogY29u c3QqIGNvbnN0IGxvY2FsZTo6X1NfY2F0ZW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dmFpbGFibGUgdXNlIGl0LCBvdGhl cndpc2UKKyAgLy8gZmFsbCBiYWNrIHRvIHRoZSB1bnNhZmUgdnNwcmludGYgd2hpY2gsIGluIGdl bmVyYWwsIGNhbiBiZSBkYW5nZXJvdXMKKyAgLy8gYW5kIHNob3VsZCBiZSBhdm9pZGVkLgorICBp bmxpbmUgaW50CisgIF9fY29udmVydF9mcm9tX3YoY29uc3QgX19jX2xvY2FsZSYgX19jbG9jIF9f YXR0cmlidXRlX18gKChfX3VudXNlZF9fKSksCisJCSAgIGNoYXIqIF9fb3V0LAorCQkgICBjb25z dCBpbnQgX19zaXplIF9fYXR0cmlidXRlX18gKChfX3VudXNlZF9fKSksCisJCSAgIGNvbnN0IGNo YXIqIF9fZm10LCAuLi4pCisgIHsKKyAgICBfX2NfbG9jYWxlIF9fb2xkID0gdXNlbG9jYWxlKF9f Y2xvYyk7CisKKyAgICBfX2J1aWx0aW5fdmFfbGlzdCBfX2FyZ3M7CisgICAgX19idWlsdGluX3Zh X3N0YXJ0KF9fYXJncywgX19mbXQpOworCisjaWYgX0dMSUJDWFhfVVNFX0M5OV9TVERJTworICAg IGNvbnN0IGludCBfX3JldCA9IF9fYnVpbHRpbl92c25wcmludGYoX19vdXQsIF9fc2l6ZSwgX19m bXQsIF9fYXJncyk7CisjZWxzZQorICAgIGNvbnN0IGludCBfX3JldCA9IF9fYnVpbHRpbl92c3By aW50ZihfX291dCwgX19mbXQsIF9fYXJncyk7CisjZW5kaWYKKworICAgIF9fYnVpbHRpbl92YV9l bmQoX19hcmdzKTsKKworICAgIHVzZWxvY2FsZShfX29sZCk7CisgICAgcmV0dXJuIF9fcmV0Owor ICB9CisKK19HTElCQ1hYX0VORF9OQU1FU1BBQ0VfVkVSU0lPTgorfSAvLyBuYW1lc3BhY2UKKwor I2VuZGlmCmRpZmYgLS1naXQgYS9saWJzdGRjKystdjMvY29uZmlnL2xvY2FsZS9uZXdsaWIvY29k ZWN2dF9tZW1iZXJzLmNjIGIvbGl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9tX25leHQgPCBfX2Zyb21fZW5kICYmIF9f dG9fbmV4dCA8IF9fdG9fZW5kCisJICYmIF9fcmV0ID09IG9rOykKKyAgICAgIHsKKwljb25zdCBp bnRlcm5fdHlwZSogX19mcm9tX2NodW5rX2VuZCA9IHdtZW1jaHIoX19mcm9tX25leHQsIEwnXDAn LAorCQkJCQkJICAgICAgX19mcm9tX2VuZCAtIF9fZnJvbV9uZXh0KTsKKwlpZiAoIV9fZnJvbV9j aHVua19lbmQpCisJICBfX2Zyb21fY2h1bmtfZW5kID0gX19mcm9tX2VuZDsKKworCV9fZnJvbSA9 IF9fZnJvbV9uZXh0OworCWNvbnN0IHNpemVfdCBfX2NvbnYgPSB3Y3NucnRvbWJzKF9fdG9fbmV4 dCwgJl9fZnJvbV9uZXh0LAorCQkJCQkgX19mcm9tX2NodW5rX2VuZCAtIF9fZnJvbV9uZXh0LAor CQkJCQkgX190b19lbmQgLSBfX3RvX25leHQsICZfX3N0YXRlKTsKKwlpZiAoX19jb252ID09IHN0 YXRpY19jYXN0PHNpemVfdD4oLTEpKQorCSAgeworCSAgICAvLyBJbiBjYXNlIG9mIGVycm9yLCBp biBvcmRlciB0byBzdG9wIGF0IHRoZSBleGFjdCBwbGFjZSB3ZQorCSAgICAvLyBoYXZlIHRvIHN0 YXJ0IGFnYWluIGZyb20gdGhlIGJlZ2lubmluZyB3aXRoIGEgc2VyaWVzIG9mCisJICAgIC8vIHdj cnRvbWIuCisJICAgIGZvciAoOyBfX2Zyb20gPCBfX2Zyb21fbmV4dDsgKytfX2Zyb20pCisJICAg ICAgX190b19uZXh0ICs9IHdjcnRvbWIoX190b19uZXh0LCAqX19mcm9tLCAmX190bXBfc3RhdGUp OworCSAgICBfX3N0YXRlID0gX190bXBfc3RhdGU7CisJICAgIF9fcmV0ID0gZXJyb3I7CisJICB9 CisJZWxzZSBpZiAoX19mcm9tX25leHQgJiYgX19mcm9tX25leHQgPCBfX2Zyb21fY2h1bmtfZW5k KQorCSAgeworCSAgICBfX3RvX25leHQgKz0gX19jb252OworCSAgICBfX3JldCA9IHBhcnRpYWw7 CisJICB9CisJZWxzZQorCSAgeworCSAgICBfX2Zyb21fbmV4dCA9IF9fZnJvbV9jaHVua19lbmQ7 CisJICAgIF9fdG9fbmV4dCArPSBfX2NvbnY7CisJICB9CisKKwlpZiAoX19mcm9tX25leHQgPCBf X2Zyb21fZW5kICYmIF9fcmV0ID09IG9rKQorCSAgeworCSAgICBleHRlcm5fdHlwZSBfX2J1ZltN Ql9MRU5fTUFYXTsKKwkgICAgX190bXBfc3RhdGUgPSBfX3N0YXRlOworCSAgICBjb25zdCBzaXpl X3QgX19jb252MiA9IHdjcnRvbWIoX19idWYsICpfX2Zyb21fbmV4dCwgJl9fdG1wX3N0YXRlKTsK KwkgICAgaWYgKF9fY29udjIgPiBzdGF0aWNfY2FzdDxzaXplX3Q+KF9fdG9fZW5kIC0gX190b19u ZXh0KSkKKwkgICAgICBfX3JldCA9IHBhcnRpYWw7CisJICAgIGVsc2UKKwkgICAgICB7CisJCW1l bWNweShfX3RvX25leHQsIF9fYnVmLCBfX2NvbnYyKTsKKwkJX19zdGF0ZSA9IF9fdG1wX3N0YXRl OworCQlfX3RvX25leHQgKz0gX19jb252MjsKKwkJKytfX2Zyb21fbmV4dDsKKwkgICAgICB9CisJ ICB9CisgICAgICB9CisKKyAgICB1c2Vsb2NhbGUoX19vbGQpOworCisgICAgcmV0dXJuIF9fcmV0 OworICB9CisKKyAgY29kZWN2dF9iYXNlOjpyZXN1bHQKKyAgY29kZWN2dDx3Y2hhcl90LCBjaGFy LCBtYnN0YXRlX3Q+OjoKKyAgZG9faW4oc3RhdGVfdHlwZSYgX19zdGF0ZSwgY29uc3QgZXh0ZXJu X3R5cGUqIF9fZnJvbSwKKwljb25zdCBleHRlcm5fdHlwZSogX19mcm9tX2VuZCwgY29uc3QgZXh0 ZXJuX3R5cGUqJiBfX2Zyb21fbmV4dCwKKwlpbnRlcm5fdHlwZSogX190bywgaW50ZXJuX3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5kIC0gX19mcm9tX25leHQsCisJCQkJICAgX190b19lbmQgLSBfX3RvX25l eHQsICZfX3N0YXRlKTsKKwlpZiAoX19jb252ID09IHN0YXRpY19jYXN0PHNpemVfdD4oLTEpKQor CSAgeworCSAgICAvLyBJbiBjYXNlIG9mIGVycm9yLCBpbiBvcmRlciB0byBzdG9wIGF0IHRoZSBl eGFjdCBwbGFjZSB3ZQorCSAgICAvLyBoYXZlIHRvIHN0YXJ0IGFnYWluIGZyb20gdGhlIGJlZ2lu bmluZyB3aXRoIGEgc2VyaWVzIG9mCisJICAgIC8vIG1icnRvd2MuCisJICAgIGZvciAoOzsgKytf X3RvX25leHQsIF9fZnJvbSArPSBfX2NvbnYpCisJICAgICAgeworCQlfX2NvbnYgPSBtYnJ0b3dj KF9fdG9fbmV4dCwgX19mcm9tLCBfX2Zyb21fZW5kIC0gX19mcm9tLAorCQkJCSAmX190bXBfc3Rh dGUpOworCQlpZiAoX19jb252ID09IHN0YXRpY19jYXN0PHNpemVfdD4oLTEpCisJCSAgICB8fCBf X2NvbnYgPT0gc3RhdGljX2Nhc3Q8c2l6ZV90PigtMikpCisJCSAgYnJlYWs7CisJICAgICAgfQor CSAgICBfX2Zyb21fbmV4dCA9IF9fZnJvbTsKKwkgICAgX19zdGF0ZSA9IF9fdG1wX3N0YXRlOwor CSAgICBfX3JldCA9IGVycm9yOworCSAgfQorCWVsc2UgaWYgKF9fZnJvbV9uZXh0ICYmIF9fZnJv bV9uZXh0IDwgX19mcm9tX2NodW5rX2VuZCkKKwkgIHsKKwkgICAgLy8gSXQgaXMgdW5jbGVhciB3 aGF0IHRvIHJldHVybiBpbiB0aGlzIGNhc2UgKHNlZSBEUiAzODIpLgorCSAgICBfX3RvX25leHQg Kz0gX19jb252OworCSAgICBfX3JldCA9IHBhcnRpYWw7CisJICB9CisJZWxzZQorCSAgeworCSAg ICBfX2Zyb21fbmV4dCA9IF9fZnJvbV9jaHVua19lbmQ7CisJICAgIF9fdG9fbmV4dCArPSBf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b25zdCBjaGFyKiBfX29uZSwKKwkJCSAg ICAgIGNvbnN0IGNoYXIqIF9fdHdvKSBjb25zdCB0aHJvdygpCisgICAgeworICAgICAgaW50IF9f Y21wID0gc3RyY29sbF9sKF9fb25lLCBfX3R3bywgX01fY19sb2NhbGVfY29sbGF0ZSk7CisgICAg ICByZXR1cm4gKF9fY21wID4+ICg4ICogc2l6ZW9mIChpbnQpIC0gMikpIHwgKF9fY21wICE9IDAp OworICAgIH0KKworICB0ZW1wbGF0ZTw+CisgICAgc2l6ZV90CisgICAgY29sbGF0ZTxjaGFyPjo6 X01fdHJhbnNmb3JtKGNoYXIqIF9fdG8sIGNvbnN0IGNoYXIqIF9fZnJvbSwKKwkJCQlzaXplX3Qg X19uKSBjb25zdCB0aHJvdygpCisgICAgeyByZXR1cm4gc3RyeGZybV9sKF9fdG8sIF9fZnJvbSwg X19uLCBfTV9jX2xvY2FsZV9jb2xsYXRlKTsgfQorCisjaWZkZWYgX0dMSUJDWFhfVVNFX1dDSEFS X1QKKyAgdGVtcGxhdGU8PgorICAgIGludAorICAgIGNvbGxhdGU8d2NoYXJfdD46Ol9NX2NvbXBh cmUoY29uc3Qgd2NoYXJfdCogX19vbmUsCisJCQkJIGNvbnN0IHdjaGFyX3QqIF9fdHdvKSBjb25z dCB0aHJvdygpCisgICAgeworICAgICAgaW50IF9fY21wID0gd2NzY29sbF9sKF9fb25lLCBfX3R3 bywgX01fY19sb2NhbGVfY29sbGF0ZSk7CisgICAgICByZXR1cm4gKF9fY21wID4+ICg4ICogc2l6 ZW9mIChpbnQpIC0gMikpIHwgKF9fY21wICE9IDApOworICAgIH0KKworICB0ZW1wbGF0ZTw+Cisg ICAgc2l6ZV90CisgICAgY29sbGF0ZTx3Y2hhcl90Pjo6X01fdHJhbnNmb3JtKHdjaGFyX3QqIF9f dG8sIGNvbnN0IHdjaGFyX3QqIF9fZnJvbSwKKwkJCQkgICBzaXplX3QgX19uKSBjb25zdCB0aHJv dygpCisgICAgeyByZXR1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9sOworCQlfX3JldC5maWVsZFsyXSA9IHZh bHVlOworCSAgICAgIH0KKwkgICAgZWxzZQorCSAgICAgIHsKKwkJX19yZXQuZmllbGRbMF0gPSB2 YWx1ZTsKKwkJX19yZXQuZmllbGRbMl0gPSBzeW1ib2w7CisJICAgICAgfQorCSAgICBfX3JldC5m aWVsZFsxXSA9IHNwYWNlOworCSAgICBfX3JldC5maWVsZFszXSA9IHNpZ247CisJICB9CisJZWxz ZQorCSAgeworCSAgICAvLyBQYXR0ZXJuIGVuZHMgd2l0aCBzaWduIHRoZW4gbm9uZS4KKwkgICAg aWYgKF9fcHJlY2VkZXMpCisJICAgICAgeworCQlfX3JldC5maWVsZFswXSA9IHN5bWJvbDsKKwkJ X19yZXQuZmllbGRbMV0gPSB2YWx1ZTsKKwkgICAgICB9CisJICAgIGVsc2UKKwkgICAgICB7CisJ CV9fcmV0LmZpZWxkWzBdID0gdmFsdWU7CisJCV9fcmV0LmZpZWxkWzFdID0gc3ltYm9sOworCSAg ICAgIH0KKwkgICAgX19yZXQuZmllbGRbMl0gPSBzaWduOworCSAgICBfX3JldC5maWVsZFszXSA9 IG5vbmU7CisJICB9CisJYnJlYWs7CisgICAgICBjYXNlIDM6CisJLy8gMyBUaGUgc2lnbiBpbW1l ZGlhdGVseSBwcmVjZWRlcyB0aGUgc3ltYm9sLgorCWlmIChfX3ByZWNlZGVzKQorCSAgeworCSAg ICBfX3JldC5maWVsZFswXSA9IHNpZ247CisJICAgIF9fcmV0LmZpZWxkWzFdID0gc3ltYm9sOwor CSAgICBpZiAoX19zcGFjZSkKKwkgICAgICB7CisJCV9fcmV0LmZpZWxkWzJdID0gc3BhY2U7CisJ CV9fcmV0LmZpZWxkWzNdID0gdmFsdWU7CisJICAgICAgfQorCSAgICBlbHNlCisJICAgICAgewor CQlfX3JldC5maWVsZFsyXSA9IHZhbHVlOworCQlfX3JldC5maWVsZFszXSA9IG5vbmU7CisJICAg ICAgfQorCSAgfQorCWVsc2UKKwkgIHsKKwkgICAgX19yZXQuZmllbGRbMF0gPSB2YWx1ZTsKKwkg ICAgaWYgKF9fc3BhY2UpCisJICAgICAgeworCQlfX3JldC5maWVsZFsxXSA9IHNwYWNlOworCQlf X3JldC5maWVsZFsyXSA9IHNpZ247CisJCV9fcmV0LmZpZWxkWzNdID0gc3ltYm9sOworCSAgICAg IH0KKwkgICAgZWxzZQorCSAgICAgIHsKKwkJX19yZXQuZmllbGRbMV0gPSBzaWduOworCQlfX3Jl dC5maWVsZFsyXSA9IHN5bWJvbDsKKwkJX19yZXQuZmllbGRbM10gPSBub25lOworCSAgICAgIH0K KwkgIH0KKwlicmVhazsKKyAgICAgIGNhc2UgNDoKKwkvLyA0IFRoZSBzaWduIGltbWVkaWF0ZWx5 IGZvbGxvd3MgdGhlIHN5bWJvbC4KKwlpZiAoX19wcmVjZWRlcykKKwkgIHsKKwkgICAgX19yZXQu ZmllbGRbMF0gPSBzeW1ib2w7CisJICAgIF9fcmV0LmZpZWxkWzFdID0gc2lnbjsKKwkgICAgaWYg KF9fc3BhY2UpCisJICAgICAgeworCQlfX3JldC5maWVsZFsyXSA9IHNwYWNlOworCQlfX3JldC5m aWVsZFszXSA9IHZhbHVlOworCSAgICAgIH0KKwkgICAgZWxzZQorCSAgICAgIHsKKwkJX19yZXQu ZmllbGRbMl0gPSB2YWx1ZTsKKwkJX19yZXQuZmllbGRbM10gPSBub25lOworCSAgICAgIH0KKwkg IH0KKwllbHNlCisJICB7CisJICAgIF9fcmV0LmZpZWxkWzBdID0gdmFsdWU7CisJICAgIGlmIChf X3NwYWNlKQorCSAgICAgIHsKKwkJX19yZXQuZmllbGRbMV0gPSBzcGFjZTsKKwkJX19yZXQuZmll bGRbMl0gPSBzeW1ib2w7CisJCV9fcmV0LmZpZWxkWzNdID0gc2lnbjsKKwkgICAgICB9CisJICAg IGVsc2UKKwkgICAgICB7CisJCV9fcmV0LmZpZWxkWzFdID0gc3ltYm9sOworCQlfX3JldC5maWVs ZFsyXSA9IHNpZ247Cis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QorCSAgICBubF9s YW5naW5mb19sKF9OTF9NT05FVEFSWV9ORUdBVElWRV9TSUdOLCBfX2Nsb2MpOworCSAgLy8gX0lu dGwgPT0gZmFsc2UKKwkgIGNvbnN0IGNoYXIqIF9fY2N1cnIgPQorCSAgICBubF9sYW5naW5mb19s KF9OTF9NT05FVEFSWV9DVVJSRU5DWV9TWU1CT0wsIF9fY2xvYyk7CisKKwkgIGNoYXIqIF9fZ3Jv dXAgPSAwOworCSAgY2hhciogX19wcyA9IDA7CisJICBjaGFyKiBfX25zID0gMDsKKwkgIGNvbnN0 IGNoYXIgX19ucG9zbiA9IDE7CisJICAgIC8qICoobmxfbGFuZ2luZm9fbChfTkxfTU9ORVRBUllf Tl9TSUdOX1BPU04sIF9fY2xvYykpOyAqLworCSAgX190cnkKKwkgICAgeworCSAgICAgIHNpemVf dCBfX2xlbjsKKworCSAgICAgIC8vIENoZWNrIGZvciBOVUxMLCB3aGljaCBpbXBsaWVzIG5vIGdy b3VwaW5nLgorCSAgICAgIGlmIChfTV9kYXRhLT5fTV90aG91c2FuZHNfc2VwID09ICdcMCcpCisJ CXsKKwkJICAvLyBMaWtlIGluICJDIiBsb2NhbGUuCisJCSAgX01fZGF0YS0+X01fZ3JvdXBpbmcg PSAiIjsKKwkJICBfTV9kYXRhLT5fTV9ncm91cGluZ19zaXplID0gMDsKKwkJICBfTV9kYXRhLT5f TV91c2VfZ3JvdXBpbmcgPSBmYWxzZTsKKwkJICBfTV9kYXRhLT5fTV90aG91c2FuZHNfc2VwID0g JywnOworCQl9CisJICAgICAgZWxzZQorCQl7CisJCSAgX19sZW4gPSBzdHJsZW4oX19jZ3JvdXAp OworCQkgIGlmIChfX2xlbikKKwkJICAgIHsKKwkJICAgICAgX19ncm91cCA9IG5ldyBjaGFyW19f bGVuICsgMV07CisJCSAgICAgIG1lbWNweShfX2dyb3VwLCBfX2Nncm91cCwgX19sZW4gKyAxKTsK KwkJICAgICAgX01fZGF0YS0+X01fZ3JvdXBpbmcgP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F0YS0+X01fbmVnYXRpdmVfc2lnbl9zaXplID0gX19sZW47CisJCX0KKworCSAgICAg IF9fbGVuID0gc3RybGVuKF9fY2N1cnIpOworCSAgICAgIGlmIChfX2xlbikKKwkJeworCQkgIGNo YXIqIF9fY3VyciA9IG5ldyBjaGFyW19fbGVuICsgMV07CisJCSAgbWVtY3B5KF9fY3VyciwgX19j Y3VyciwgX19sZW4gKyAxKTsKKwkJICBfTV9kYXRhLT5fTV9jdXJyX3N5bWJvbCA9IF9fY3VycjsK KwkJfQorCSAgICAgIGVsc2UKKwkJX01fZGF0YS0+X01fY3Vycl9zeW1ib2wgPSAiIjsKKwkgICAg ICBfTV9kYXRhLT5fTV9jdXJyX3N5bWJvbF9zaXplID0gX19sZW47CisJICAgIH0KKwkgIF9fY2F0 Y2goLi4uKQorCSAgICB7CisJICAgICAgZGVsZXRlIF9NX2RhdGE7CisJICAgICAgX01fZGF0YSA9 IDA7CisJICAgICAgZGVsZXRlIFtdIF9fZ3JvdXA7CisJICAgICAgZGVsZXRlIFtdIF9fcHM7CisJ ICAgICAgZGVsZXRlIFtdIF9fbnM7CisJICAgICAgX190aHJvd19leGNlcHRpb25fYWdhaW47CisJ ICAgIH0KKworCSAgY2hhciBfX3BwcmVjZWRlcyA9CisJICAgICoobmxfbGFuZ2luZm9fbChfTkxf TU9ORVRBUllfUF9DU19QUkVDRURFUywgX19jbG9jKSk7CisJICBjaGFyIF9fcHNwYWNlID0KKwkg ICAgKihubF9sYW5naW5mb19sKF9OTF9NT05FVEFSWV9QX1NFUF9CWV9TUEFDRSwgX19jbG9jKSk7 CisJICBjaGFyIF9fcHBvc24gPSAqKG5sX2xhbmdpbmZvX2woX05MX01PTkVUQVJZX1BfU0lHTl9Q T1NOLCBfX2Nsb2MpKTsKKwkgIF9NX2RhdGEtPl9NX3Bvc19mb3JtYXQgPSBfU19jb25zdHJ1Y3Rf cGF0dGVybihfX3BwcmVjZWRlcywgX19wc3BhY2UsCisJCQkJCQkJX19wcG9zb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wb2ludCA9ICpf X3UuX193OworCisJICBfX3UuX19zID0gbmxfbGFuZ2luZm9fbChfTkxfTU9ORVRBUllfV01PTl9U SE9VU0FORFNfU0VQLCBfX2Nsb2MpOworCSAgX01fZGF0YS0+X01fdGhvdXNhbmRzX3NlcCA9ICpf X3UuX193OworCisJICAvLyBDaGVjayBmb3IgTlVMTCwgd2hpY2ggaW1wbGllcyBubyBmcmFjdGlv bmFsIGRpZ2l0cy4KKwkgIGlmIChfTV9kYXRhLT5fTV9kZWNpbWFsX3BvaW50ID09IEwnXDAnKQor CSAgICB7CisJICAgICAgLy8gTGlrZSBpbiAiQyIgbG9jYWxlLgorCSAgICAgIF9NX2RhdGEtPl9N X2ZyYWNfZGlnaXRzID0gMDsKKwkgICAgICBfTV9kYXRhLT5fTV9kZWNpbWFsX3BvaW50ID0gTCcu JzsKKwkgICAgfQorCSAgZWxzZQorCSAgICBfTV9kYXRhLT5fTV9mcmFjX2RpZ2l0cyA9CisJICAg ICAgKihubF9sYW5naW5mb19sKF9OTF9NT05FVEFSWV9JTlRfRlJBQ19ESUdJVFMsIF9fY2xvYykp OworCisJICBjb25zdCBjaGFyKiBfX2Nncm91cCA9CisJICAgIG5sX2xhbmdpbmZvX2woX05MX01P TkVUQVJZX01PTl9HUk9VUElORywgX19jbG9jKTsKKwkgIGNvbnN0IGNoYXIqIF9fY3Bvc3NpZ24g PQorCSAgICBubF9sYW5naW5mb19sKF9OTF9NT05FVEFSWV9QT1NJVElWRV9TSUdOLCBfX2Nsb2Mp OworCSAgY29uc3QgY2hhciogX19jbmVnc2lnbiA9CisJICAgIG5sX2xhbmdpbmZvX2woX05MX01P TkVUQVJZX05FR0FUSVZFX1NJR04sIF9fY2xvYyk7CisJICBjb25zdCBjaGFyKiBfX2NjdXJyID0K KwkgICAgbmxfbGFuZ2luZm9fbChfTkxfTU9ORVRBUllfSU5UX0NVUlJfU1lNQk9MLCBfX2Nsb2Mp OworCisJICBjaGFyKiBfX2dyb3VwID0gMDsKKw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emUgPQorCQl3Y3NsZW4oX01fZGF0YS0+X01f bmVnYXRpdmVfc2lnbik7CisKKwkgICAgICAvLyBfSW50bCA9PSB0cnVlLgorCSAgICAgIF9fbGVu ID0gc3RybGVuKF9fY2N1cnIpOworCSAgICAgIGlmIChfX2xlbikKKwkJeworCQkgIG1lbXNldCgm X19zdGF0ZSwgMCwgc2l6ZW9mKG1ic3RhdGVfdCkpOworCQkgIHdjaGFyX3QqIF9fd2NzID0gbmV3 IHdjaGFyX3RbX19sZW4gKyAxXTsKKwkJICBtYnNydG93Y3MoX193Y3MsICZfX2NjdXJyLCBfX2xl biArIDEsICZfX3N0YXRlKTsKKwkJICBfTV9kYXRhLT5fTV9jdXJyX3N5bWJvbCA9IF9fd2NzOwor CQl9CisJICAgICAgZWxzZQorCQlfTV9kYXRhLT5fTV9jdXJyX3N5bWJvbCA9IEwiIjsKKwkgICAg ICBfTV9kYXRhLT5fTV9jdXJyX3N5bWJvbF9zaXplID0gd2NzbGVuKF9NX2RhdGEtPl9NX2N1cnJf c3ltYm9sKTsKKwkgICAgfQorCSAgX19jYXRjaCguLi4pCisJICAgIHsKKwkgICAgICBkZWxldGUg X01fZGF0YTsKKwkgICAgICBfTV9kYXRhID0gMDsKKwkgICAgICBkZWxldGUgW10gX19ncm91cDsK KwkgICAgICBkZWxldGUgW10gX193Y3NfcHM7CisJICAgICAgZGVsZXRlIFtdIF9fd2NzX25zOwor CSAgICAgIHVzZWxvY2FsZShfX29sZCk7CisJICAgICAgX190aHJvd19leGNlcHRpb25fYWdhaW47 CisJICAgIH0KKworCSAgY2hhciBfX3BwcmVjZWRlcyA9CisJICAgICoobmxfbGFuZ2luZm9fbChf TkxfTU9ORVRBUllfSU5UX1BfQ1NfUFJFQ0VERVMsIF9fY2xvYykpOworCSAgY2hhciBfX3BzcGFj ZSA9CisJICAgICoobmxfbGFuZ2luZm9fbChfTkxfTU9ORVRBUllfSU5UX1BfU0VQX0JZX1NQQUNF LCBfX2Nsb2MpKTsKKwk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ZvX2woX05MX01PTkVUQVJZX0NVUlJFTkNZX1NZTUJP TCwgX19jbG9jKTsKKworCSAgY2hhciogX19ncm91cCA9IDA7CisJICB3Y2hhcl90KiBfX3djc19w cyA9IDA7CisJICB3Y2hhcl90KiBfX3djc19ucyA9IDA7CisJICBjb25zdCBjaGFyIF9fbnBvc24g PSAxOworCSAgICAvKiAqKG5sX2xhbmdpbmZvX2woX05MX01PTkVUQVJZX05fU0lHTl9QT1NOLCBf X2Nsb2MpKTsgKi8KKwkgIF9fdHJ5CisJICAgIHsKKwkgICAgICBzaXplX3QgX19sZW47CisKKwkg ICAgICAvLyBDaGVjayBmb3IgTlVMTCwgd2hpY2ggaW1wbGllcyBubyBncm91cGluZy4KKwkgICAg ICBpZiAoX01fZGF0YS0+X01fdGhvdXNhbmRzX3NlcCA9PSBMJ1wwJykKKwkJeworCQkgIC8vIExp a2UgaW4gIkMiIGxvY2FsZS4KKwkJICBfTV9kYXRhLT5fTV9ncm91cGluZyA9ICIiOworCQkgIF9N X2RhdGEtPl9NX2dyb3VwaW5nX3NpemUgPSAwOworCQkgIF9NX2RhdGEtPl9NX3VzZV9ncm91cGlu ZyA9IGZhbHNlOworCQkgIF9NX2RhdGEtPl9NX3Rob3VzYW5kc19zZXAgPSBMJywnOworCQl9CisJ ICAgICAgZWxzZQorCQl7CisJCSAgX19sZW4gPSBzdHJsZW4oX19jZ3JvdXApOworCQkgIGlmIChf X2xlbikKKwkJICAgIHsKKwkJICAgICAgX19ncm91cCA9IG5ldyBjaGFyW19fbGVuICsgMV07CisJ CSAgICAgIG1lbWNweShfX2dyb3VwLCBfX2Nncm91cCwgX19sZW4gKyAxKTsKKwkJICAgICAgX01f ZGF0YS0+X01fZ3JvdXBpbmcgPSBfX2dyb3VwOworCQkgICAgfQorCQkgIGVsc2UKKwkJICAgIHsK KwkJICAgICAgX01fZGF0YS0+X01fZ3JvdXBpbmcgPSAiIjsKKwkJICAgICAgX01fZGF0YS0+X01f dXNlX2dyb3VwaW5n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YXRpdmVfc2lnbiA9IEwiIjsK KwkgICAgICBfTV9kYXRhLT5fTV9uZWdhdGl2ZV9zaWduX3NpemUgPQorCQl3Y3NsZW4oX01fZGF0 YS0+X01fbmVnYXRpdmVfc2lnbik7CisKKwkgICAgICAvLyBfSW50bCA9PSB0cnVlLgorCSAgICAg IF9fbGVuID0gc3RybGVuKF9fY2N1cnIpOworCSAgICAgIGlmIChfX2xlbikKKwkJeworCQkgIG1l bXNldCgmX19zdGF0ZSwgMCwgc2l6ZW9mKG1ic3RhdGVfdCkpOworCQkgIHdjaGFyX3QqIF9fd2Nz ID0gbmV3IHdjaGFyX3RbX19sZW4gKyAxXTsKKwkJICBtYnNydG93Y3MoX193Y3MsICZfX2NjdXJy LCBfX2xlbiArIDEsICZfX3N0YXRlKTsKKwkJICBfTV9kYXRhLT5fTV9jdXJyX3N5bWJvbCA9IF9f d2NzOworCQl9CisJICAgICAgZWxzZQorCQlfTV9kYXRhLT5fTV9jdXJyX3N5bWJvbCA9IEwiIjsK KwkgICAgICBfTV9kYXRhLT5fTV9jdXJyX3N5bWJvbF9zaXplID0gd2NzbGVuKF9NX2RhdGEtPl9N X2N1cnJfc3ltYm9sKTsKKwkgICAgfQorCSAgX19jYXRjaCguLi4pCisJICAgIHsKKwkgICAgICBk ZWxldGUgX01fZGF0YTsKKwkgICAgICBfTV9kYXRhID0gMDsKKwkgICAgICBkZWxldGUgW10gX19n cm91cDsKKwkgICAgICBkZWxldGUgW10gX193Y3NfcHM7CisJICAgICAgZGVsZXRlIFtdIF9fd2Nz X25zOworCSAgICAgIHVzZWxvY2FsZShfX29sZCk7CisJICAgICAgX190aHJvd19leGNlcHRpb25f YWdhaW47CisJICAgIH0KKworCSAgY2hhciBfX3BwcmVjZWRlcyA9CisJICAgICoobmxfbGFuZ2lu Zm9fbChfTkxfTU9ORVRBUllfUF9DU19QUkVDRURFUywgX19jbG9jKSk7CisJICBjaGFyIF9fcHNw YWNlID0KKwkgICAgKihubF9sYW5naW5mb19s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ihzKTsKKwljaGFyKiBvdXRidWYgPSAmYzE7CisJc2l6ZV90 IG4gPSBpY29udihjZCwgJmluYnVmLCAmaW5ieXRlc2xlZnQsICZvdXRidWYsICZvdXRieXRlc2xl ZnQpOworCWljb252X2Nsb3NlKGNkKTsKKwlpZiAobiAhPSAoc2l6ZV90KS0xKQorCSAgeworCSAg ICBjZCA9IGljb252X29wZW4oY29kZXNldCwgIkFTQ0lJIik7CisJICAgIGlmIChjZCAhPSAoaWNv bnZfdCktMSkKKwkgICAgICB7CisJCWNoYXIgYzI7CisJCWluYnVmID0gJmMxOworCQlpbmJ5dGVz bGVmdCA9IDE7CisJCW91dGJ1ZiA9ICZjMjsKKwkJb3V0Ynl0ZXNsZWZ0ID0gMTsKKwkJbiA9IGlj b252KGNkLCAmaW5idWYsICZpbmJ5dGVzbGVmdCwgJm91dGJ1ZiwgJm91dGJ5dGVzbGVmdCk7CisJ CWljb252X2Nsb3NlKGNkKTsKKwkJaWYgKG4gIT0gKHNpemVfdCktMSkKKwkJICByZXR1cm4gYzI7 CisJICAgICAgfQorCSAgfQorICAgICAgfQorICAgIHJldHVybiAnXDAnOworICB9CisjZW5kaWYK KworICB0ZW1wbGF0ZTw+CisgICAgdm9pZAorICAgIG51bXB1bmN0PGNoYXI+OjpfTV9pbml0aWFs aXplX251bXB1bmN0KF9fY19sb2NhbGUgX19jbG9jKQorICAgIHsKKyAgICAgIGlmICghX01fZGF0 YSkKKwlfTV9kYXRhID0gbmV3IF9fbnVtcHVuY3RfY2FjaGU8Y2hhcj47CisKKyAgICAgIGlmICgh X19jbG9jKQorCXsKKwkgIC8vICJDIiBsb2NhbGUKKwkgIF9NX2RhdGEtPl9NX2dyb3VwaW5nID0g IiI7CisJICBfTV9kYXRhLT5fTV9ncm91cGluZ19zaXplID0gMDsKKwkgIF9NX2RhdGEtPl9NX3Vz ZV9ncm91cGluZyA9IGZhbHNlOworCisJICBfTV9kYXRhLT5fTV9kZWNpbWFsX3BvaW50ID0gJy4n OworCSAgX01fZGF0YS0+X01fdGhvdXNhbmRzX3NlcCA9ICcsJzsKKworCSAgZm9yIChzaXplX3Qg X19pID0gMDsgX19pIDwgX19udW1fYmFzZTo6X1Nfb2VuZDsgKytfX2kpCisJICAgIF9NX2RhdGEt Pl9NX2F0b21zX291dFtfX2ldID0gX19udW1fYmFzZTo6X1NfYXRvbXNfb3V0W19faV07CisKKwkg IGZvciAoc2l6ZV90IF9faiA9IDA7IF9faiA8IF9fbnVtX2Jhc2U6Ol9TX2llbmQ7ICsrX19qKQor CSAgICBfTV9kYXRhLT5fTV9hdG9tc19pbltfX2pdID0gX19udW1fYmFzZTo6X1NfYXRvbXNfaW5b X19qXTsKKwl9CisgICAgICBlbHNlCisJeworCSAgLy8gTmFtZWQgbG9jYWxlLgorCSAgX19jX2xv Y2FsZSBfX29sZCA9IHVzZWxvY2FsZShfX2Nsb2MpOworCSAgdW5pb24geyBjaGFyICpfX3M7IHdj aGFyX3QgKl9fdzsgfSBfX3U7CisJICBfX3UuX19zID0gbmxfbGFuZ2luZm9fbChfTkxfTlVNRVJJ Q19ERUNJTUFMX1BPSU5UX1dDLCBfX2Nsb2MpOworCSAgX01fZGF0YS0+X01fZGVjaW1hbF9wb2lu dCA9IHdjdG9iKCpfX3UuX193KTsKKworCSAgX191Ll9fcyA9IG5sX2xhbmdpbmZvX2woX05MX05V TUVSSUNfVEhPVVNBTkRTX1NFUF9XQywgX19jbG9jKTsKKwkgIF9NX2RhdGEtPl9NX3Rob3VzYW5k c19zZXAgPSB3Y3RvYigqX191Ll9fdyk7CisJICB1c2Vsb2NhbGUoX19vbGQpOworCisJICAvLyBD aGVjayBmb3IgTlVMTCwgd2hpY2ggaW1wbGllcyBubyBncm91cGluZy4KKwkgIGlmIChfTV9kYXRh LT5fTV90aG91c2FuZHNfc2VwID09ICdcMCcpCisJICAgIHsKKwkgICAgICAvLyBMaWtlIGluICJD IiBsb2NhbGUuCisJICAgICAgX01fZGF0YS0+X01fZ3JvdXBpbmcgPSAiIjsKKwkgICAgICBfTV9k YXRhLT5fTV9ncm91cGluZ19zaXplID0gMDsKKwkgICAgICBfTV9kYXRhLT5fTV91c2VfZ3JvdXBp bmcgPSBmYWxzZTsKKwkgICAgICBfTV9kYXRhLT5fTV90aG91c2FuZHNfc2VwID0gJywnOworCSAg ICB9CisJICBlbHNlCisJICAgIHsKKwkgICAgICBjb25zdCBjaGFyKiBfX3NyYyA9IG5sX2xhbmdp bmZvX2woX05MX05VTUVSSUNfR1JPVVBJTkcsIF9fY2xvYyk7CisJICAgICAgY29uc3Qgc2l6ZV90 IF9fbGVuID0gc3RybGVuKF9fc3JjKTsKKwkgICAgICBpZiAoX19sZW4pCisJCXsKKwkJICBfX3Ry eQorCQkgICAgeworCQkgICAgICBjaGFyKiBfX2RzdCA9IG5ldyBjaGFyW19fbGVuICsgMV07CisJ CSAgICAgIG1lbWNweShfX2RzdCwgX19zcmMsIF9fbGVuICsgMSk7CisJCSAgICAgIF9NX2RhdGEt Pl9NX2dyb3VwaW5nID0gX19kc3Q7CisJCSAgICB9CisJCSAgX19jYXRjaCguLi4pCisJCSAgICB7 CisJCSAgICAgIGRlbGV0ZSBfTV9kYXRhOworCQkgICAgICBfTV9kYXRhID0gMDsKKwkJICAgICAg X190aHJvd19leGNlcHRpb25fYWdhaW47CisJCSAgICB9CisJCX0KKwkgICAgICBlbHNlCisJCXsK KwkJICBfTV9kYXRhLT5fTV9ncm91cGluZyA9ICIiOworCQkgIF9NX2RhdGEtPl9NX3VzZV9ncm91 cGluZyA9IGZhbHNlOworCQl9CisJICAgICAgX01fZGF0YS0+X01fZ3JvdXBpbmdfc2l6ZSA9IF9f bGVuOworCSAgICB9CisJfQorCisgICAgICAvLyBOQjogVGhlcmUgaXMgbm8gd2F5IHRvIGV4dGFj dCB0aGlzIGluZm8gZnJvbSBwb3NpeCBsb2NhbGVzLgorICAgICAgLy8gX01fdHJ1ZW5hbWUgPSBu bF9sYW5naW5mb19sKFlFU1NUUiwgX19jbG9jKTsKK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DIiBsb2NhbGUuCisJICAgICAgX01fZGF0YS0+X01fZ3JvdXBp bmcgPSAiIjsKKwkgICAgICBfTV9kYXRhLT5fTV9ncm91cGluZ19zaXplID0gMDsKKwkgICAgICBf TV9kYXRhLT5fTV91c2VfZ3JvdXBpbmcgPSBmYWxzZTsKKwkgICAgICBfTV9kYXRhLT5fTV90aG91 c2FuZHNfc2VwID0gTCcsJzsKKwkgICAgfQorCSAgZWxzZQorCSAgICB7CisJICAgICAgY29uc3Qg Y2hhciogX19zcmMgPSBubF9sYW5naW5mb19sKF9OTF9OVU1FUklDX0dST1VQSU5HLCBfX2Nsb2Mp OworCSAgICAgIGNvbnN0IHNpemVfdCBfX2xlbiA9IHN0cmxlbihfX3NyYyk7CisJICAgICAgaWYg KF9fbGVuKQorCQl7CisJCSAgX190cnkKKwkJICAgIHsKKwkJICAgICAgY2hhciogX19kc3QgPSBu ZXcgY2hhcltfX2xlbiArIDFdOworCQkgICAgICBtZW1jcHkoX19kc3QsIF9fc3JjLCBfX2xlbiAr IDEpOworCQkgICAgICBfTV9kYXRhLT5fTV9ncm91cGluZyA9IF9fZHN0OworCQkgICAgfQorCQkg IF9fY2F0Y2goLi4uKQorCQkgICAgeworCQkgICAgICBkZWxldGUgX01fZGF0YTsKKwkJICAgICAg X01fZGF0YSA9IDA7CisJCSAgICAgIF9fdGhyb3dfZXhjZXB0aW9uX2FnYWluOworCQkgICAgfQor CQl9CisJICAgICAgZWxzZQorCQl7CisJCSAgX01fZGF0YS0+X01fZ3JvdXBpbmcgPSAiIjsKKwkJ ICBfTV9kYXRhLT5fTV91c2VfZ3JvdXBpbmcgPSBmYWxzZTsKKwkJfQorCSAgICAgIF9NX2RhdGEt Pl9NX2dyb3VwaW5nX3NpemUgPSBfX2xlbjsKKwkgICAgfQorCX0KKworICAgICAgLy8gTkI6IFRo ZXJlIGlzIG5vIHdheSB0byBleHRhY3QgdGhpcyBpbmZvIGZyb20gcG9zaXggbG9jYWxlcy4KKyAg ICAgIC8v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TV9tb250aDAzID0gX191Ll9fdzsKKwkgIF9fdS5fX3MgPSBubF9sYW5naW5mb19sKF9OTF9USU1F X1dNT05USF80LCBfX2Nsb2MpOworCSAgX01fZGF0YS0+X01fbW9udGgwNCA9IF9fdS5fX3c7CisJ ICBfX3UuX19zID0gbmxfbGFuZ2luZm9fbChfTkxfVElNRV9XTU9OVEhfNSwgX19jbG9jKTsKKwkg IF9NX2RhdGEtPl9NX21vbnRoMDUgPSBfX3UuX193OworCSAgX191Ll9fcyA9IG5sX2xhbmdpbmZv X2woX05MX1RJTUVfV01PTlRIXzYsIF9fY2xvYyk7CisJICBfTV9kYXRhLT5fTV9tb250aDA2ID0g X191Ll9fdzsKKwkgIF9fdS5fX3MgPSBubF9sYW5naW5mb19sKF9OTF9USU1FX1dNT05USF83LCBf X2Nsb2MpOworCSAgX01fZGF0YS0+X01fbW9udGgwNyA9IF9fdS5fX3c7CisJICBfX3UuX19zID0g bmxfbGFuZ2luZm9fbChfTkxfVElNRV9XTU9OVEhfOCwgX19jbG9jKTsKKwkgIF9NX2RhdGEtPl9N X21vbnRoMDggPSBfX3UuX193OworCSAgX191Ll9fcyA9IG5sX2xhbmdpbmZvX2woX05MX1RJTUVf V01PTlRIXzksIF9fY2xvYyk7CisJICBfTV9kYXRhLT5fTV9tb250aDA5ID0gX191Ll9fdzsKKwkg IF9fdS5fX3MgPSBubF9sYW5naW5mb19sKF9OTF9USU1FX1dNT05USF8xMCwgX19jbG9jKTsKKwkg IF9NX2RhdGEtPl9NX21vbnRoMTAgPSBfX3UuX193OworCSAgX191Ll9fcyA9IG5sX2xhbmdpbmZv X2woX05MX1RJTUVfV01PTlRIXzExLCBfX2Nsb2MpOworCSAgX01fZGF0YS0+X01fbW9udGgxMSA9 IF9fdS5fX3c7CisJICBfX3UuX19zID0gbmxfbGFuZ2luZm9fbChfTkxfVElNRV9XTU9OVEhfMTIs IF9fY2xvYyk7CisJICBfTV9kYXRhLT5fTV9tb250aDEyID0gX191Ll9fdzsKKworCSAgLy8gQWJi cmV2aWF0ZWQgbW9udGggbmFtZXMsIHN0YXJ0aW5nIHdpdGggIkMiJ3MgSmFuLgorCSAgX191Ll9f cyA9IG5sX2xhbmdpbmZvX2woX05MX1RJTUVfV01PTl8xLCBfX2Nsb2MpOworCSAgX01fZGF0YS0+ X01fYW1vbnRoMDEgPSBfX3UuX193OworCSAgX191Ll9fcyA9IG5sX2xhbmdpbmZvX2woX05MX1RJ TUVfV01PTl8yLCBfX2Nsb2MpOworCSAgX01fZGF0YS0+X01fYW1vbnRoMDIgPSBfX3UuX193Owor CSAgX191Ll9fcyA9IG5sX2xhbmdpbmZvX2woX05MX1RJTUVfV01PTl8zLCBfX2Nsb2MpOworCSAg X01fZGF0YS0+X01fYW1vbnRoMDMgPSBfX3UuX193OworCSAgX191Ll9fcyA9IG5sX2xhbmdpbmZv X2woX05MX1RJTUVfV01PTl80LCBfX2Nsb2MpOworCSAgX01fZGF0YS0+X01fYW1vbnRoMDQgPSBf X3UuX193OworCSAgX191Ll9fcyA9IG5sX2xhbmdpbmZvX2woX05MX1RJTUVfV01PTl81LCBfX2Ns b2MpOworCSAgX01fZGF0YS0+X01fYW1vbnRoMDUgPSBfX3UuX193OworCSAgX191Ll9fcyA9IG5s X2xhbmdpbmZvX2woX05MX1RJTUVfV01PTl82LCBfX2Nsb2MpOworCSAgX01fZGF0YS0+X01fYW1v bnRoMDYgPSBfX3UuX193OworCSAgX191Ll9fcyA9IG5sX2xhbmdpbmZvX2woX05MX1RJTUVfV01P Tl83LCBfX2Nsb2MpOworCSAgX01fZGF0YS0+X01fYW1vbnRoMDcgPSBfX3UuX193OworCSAgX191 Ll9fcyA9IG5sX2xhbmdpbmZvX2woX05MX1RJTUVfV01PTl84LCBfX2Nsb2MpOworCSAgX01fZGF0 YS0+X01fYW1vbnRoMDggPSBfX3UuX193OworCSAgX191Ll9fcyA9IG5sX2xhbmdpbmZvX2woX05M X1RJTUVfV01PTl85LCBfX2Nsb2MpOworCSAgX01fZG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jo6Y2xhc3NpY190YWJsZSgpIHRocm93KCkKICAgeyBy ZXR1cm4gX2N0eXBlXyArIDE7IH0KIAotICBjdHlwZTxjaGFyPjo6Y3R5cGUoX19jX2xvY2FsZSwg Y29uc3QgbWFzayogX190YWJsZSwgYm9vbCBfX2RlbCwKKyAgY3R5cGU8Y2hhcj46OmN0eXBlKF9f Y19sb2NhbGUgX19jbG9jLCBjb25zdCBtYXNrKiBfX3RhYmxlLCBib29sIF9fZGVsLAogCQkgICAg IHNpemVfdCBfX3JlZnMpCi0gIDogZmFjZXQoX19yZWZzKSwgX01fZGVsKF9fdGFibGUgIT0gMCAm JiBfX2RlbCksCisgIDogZmFjZXQoX19yZWZzKSwgX01fY19sb2NhbGVfY3R5cGUoX1NfY2xvbmVf Y19sb2NhbGUoX19jbG9jKSksCisgIF9NX2RlbChfX3RhYmxlICE9IDAgJiYgX19kZWwpLAogICBf TV90b3VwcGVyKE5VTEwpLCBfTV90b2xvd2VyKE5VTEwpLAotICBfTV90YWJsZShfX3RhYmxlID8g X190YWJsZSA6IGNsYXNzaWNfdGFibGUoKSkKKyAgX01fdGFibGUoX190YWJsZSA/IF9fdGFibGUg OiBjbGFzc2ljX3RhYmxlKCkpLAorICBfTV93aWRlbl9vaygwKSwgX01fbmFycm93X29rKDApCiAg IHsKICAgICBtZW1zZXQoX01fd2lkZW4sIDAsIHNpemVvZihfTV93aWRlbikpOwotICAgIF9NX3dp ZGVuX29rID0gMDsKICAgICBtZW1zZXQoX01fbmFycm93LCAwLCBzaXplb2YoX01fbmFycm93KSk7 Ci0gICAgX01fbmFycm93X29rID0gMDsKICAgfQogCiAgIGN0eXBlPGNoYXI+OjpjdHlwZShjb25z dCBtYXNrKiBfX3RhYmxlLCBib29sIF9fZGVsLCBzaXplX3QgX19yZWZzKQotICA6IGZhY2V0KF9f cmVmcyksIF9NX2RlbChfX3RhYmxlICE9IDAgJiYgX19kZWwpLAorICA6IGZhY2V0KF9fcmVmcyks IF9NX2NfbG9jYWxl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PKu_f Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple --Multipart=_Sun__31_Dec_2023_15_57_12_+0900_78LTqiKq6qcPKu_f--