From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nikolay Kudryavtsev Newsgroups: gmane.emacs.help Subject: Re: How to test for native JSON support? Date: Tue, 4 May 2021 01:33:04 +0300 Message-ID: References: <87k0ohuybx.fsf@fastmail.fm> <785b4132-da32-0da8-519d-b39a58270f32@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35949"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 To: Dmitry Gutov , Joost Kremers , gnu-emacs-help@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 04 00:55:41 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ldhTZ-0009GE-8z for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 00:55:41 +0200 Original-Received: from localhost ([::1]:40644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldhTY-0006wv-Bm for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 18:55:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldh7o-0007Qm-Kr for help-gnu-emacs@gnu.org; Mon, 03 May 2021 18:33:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36128) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldh7o-0001Rh-CX for help-gnu-emacs@gnu.org; Mon, 03 May 2021 18:33:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49648) by fencepost.gnu.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ldh7m-0000Ab-L8 for gnu-emacs-help@gnu.org; Mon, 03 May 2021 18:33:11 -0400 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:39502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldh7l-0001Pr-4T for gnu-emacs-help@gnu.org; Mon, 03 May 2021 18:33:10 -0400 Original-Received: by mail-lf1-x136.google.com with SMTP id x20so10412801lfu.6 for ; Mon, 03 May 2021 15:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=JQAjayQSo4yuJnpQMasvYSSIatnIB410LQKIIJn7dZ4=; b=Nu2Lw470mRFMWDnoVI60tzCO1DDcxbx+jiIcLlQrvVngRBLMCuJ40yak70cpCuHvWF xTkoSHckRGtYm7w7nLpJAf2D3FO1Ab6cs2s8+DB9hqRrC/gGIz8w/k654vC/jLGes0Pc Nz9peaGYRHJH31oocVgky74uXeOKNdMa5NI4tBmeBHg+Xd9JiStVWNF9uKI4N/nTaguv XJcseWtQXj14X9BBKH2yWvVKIwz9m9MzVgNi062Yqd9E0WaV6YMwPb8hP3hNDxrg7Tgy paz6kpdIk67Pjb3HhaAzFfrea9x4Fddl/HMkivsEmrnHBEyl91xfS/Ewe1brFO51ujMm z4dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=JQAjayQSo4yuJnpQMasvYSSIatnIB410LQKIIJn7dZ4=; b=pmGmq2rIXseoiQSsfoONluMUwkyhI2DGpK14pdhPI0iVh2DGjtULeyWxEJRYoghgTF UNTBYtTfijijBrERjwlQWDiPMXV/+KG0G3aE8GNinmZvzxk4KNwPcXRZAS/XoqDieAWQ rDlcq7lI5rbHhBwPl0wlaNoGqHRhpBmeN1yzAyP/0XLQmZt/yzBE07x2MzUCHK+zsJwE vr6VGCqcBxG4Fy6IHGhhAP6WMuUI1ernjxwraUFh5FuFbxwLfgRo9fHLNIFF3fDBllkn Uz1e6Jt5nlVbly1cINaZYqNffDXtz7iAkKAqOjDq62ZTUYZwKaqCpvRX4wlma9NdDqt6 IqQg== X-Gm-Message-State: AOAM531rD7wx0OawgpzAMROurDd1rHObbsUZ6M/d1qBDAxnf80Wai+jR 6gUFPHfdfocZ6Z+tMwHGtJjZ8ZO3RvF6WA== X-Google-Smtp-Source: ABdhPJy6obF0f8Gp/m9zG7+O4+xgqoKiFzALnY6vXNlMpAKH4u+HUlvKIqnLinxL/61aM7+IGlaw2g== X-Received: by 2002:ac2:4568:: with SMTP id k8mr5294931lfm.382.1620081186870; Mon, 03 May 2021 15:33:06 -0700 (PDT) Original-Received: from [192.168.199.3] (broadband-46-242-10-35.ip.moscow.rt.ru. [46.242.10.35]) by smtp.gmail.com with ESMTPSA id x5sm81779lff.116.2021.05.03.15.33.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 May 2021 15:33:06 -0700 (PDT) X-Google-Original-From: Nikolay Kudryavtsev In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=nikolay.kudryavtsev@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129391 Archived-At: json-serialize would return nil if libjansson library is not available during the execution time. So the scenario would be someone building Emacs with json support, then forgetting to put libjansson on his path and/or moving the binary to another machine. Not very likely to happen on any POSIX systems, but a more or less tangible case on Windows.