From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qNTWKVd/rmJGDQAAbAwnHQ (envelope-from ) for ; Sun, 19 Jun 2022 03:43:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WOHdKVd/rmJZaAAA9RJhRA (envelope-from ) for ; Sun, 19 Jun 2022 03:43:51 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5DDD89637 for ; Sun, 19 Jun 2022 03:43:51 +0200 (CEST) Received: from localhost ([::1]:51972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2jyg-0004y6-6U for larch@yhetil.org; Sat, 18 Jun 2022 21:43:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2jxo-0004xx-6P for emacs-orgmode@gnu.org; Sat, 18 Jun 2022 21:42:56 -0400 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]:36388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2jxm-0003g2-R5 for emacs-orgmode@gnu.org; Sat, 18 Jun 2022 21:42:55 -0400 Received: by mail-qk1-x72a.google.com with SMTP id c83so5741464qke.3 for ; Sat, 18 Jun 2022 18:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=yrj7YL39RQRTaDUQsOlw9iDcXW1kllmYitBO9TcbUhE=; b=mHKOTptAwiIR/LC05pwY8rv8xRgk0xSrgO0DWXNXlKvhgbe/0ymneTKLGHqNR+Lh8Z NlLgKb3yJw7verObyUcvhXnWBHMdPX3inuZ/HKjqrKpQDbBjyZLFJJfd1JSc8Kgf0N2H aO4O36j81h3ouvScNnPo8+c+GDKIa36kXx/zq5WDOsQdWG5QeynsGlLTQ2dk9dpfQ9FD MiCt7/GkEZonBW1wzc/jf0HDoJNYzMd6j5G8VK6pMkHFRdkMYVWydw3LHZDQlK/HXEPF ev8PaPWg6fXdFTVpYfebAQ+F7hZaymbx7GsfvqjRBVItQydriPB+X8CwtCPwe7CWyYd9 eLqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=yrj7YL39RQRTaDUQsOlw9iDcXW1kllmYitBO9TcbUhE=; b=6XqZ6wYLEl3oW5S5qqbI4Mds7ozsBrNZBV5MOiE6yOhejnKZ2WlklZFhekaYlt6trq BZ4q65NnP68UbIS9QwNva9vr7c6e5Mkf8if++/+IWBurwKcDrYhAYWec7CDgPw8Uu0cr 45bGEdue9JMBAbyNGJipfZSrLKLQKGp2QX4dND2eqttY/PDVDzy5A2+ZTqWupyNzEuYf 9zLVFpWMJxE1QyTWCvke9+5RcNb1ZzSVNkiLeO4WFI20X+yHhcRQctom8T/CvYE1JPSH wR55h+ieobb8aE8aHYbwycweBx89dm5m/3w/6a6NcUoGSLjkgiD050dBFZ3ENKnbFK3g oA+w== X-Gm-Message-State: AJIora/2Cg1UIqWtAsTGqMy6iKOu/o6gc6O5A1IHpRAlMfdPwnSzaWRO fEfFQBxjWPPQJBgARVPwBVSvdHCOdDoR2ouj X-Google-Smtp-Source: AGRyM1uy0VDGGNY6cIfImL8b+DVvhsVaHHDL79ssVW/s8tqTQ+afMQVsz0wTg5uSOPuaB4+ey5kZ5g== X-Received: by 2002:a05:620a:2850:b0:6ab:7312:d7f with SMTP id h16-20020a05620a285000b006ab73120d7fmr10003006qkp.723.1655602973802; Sat, 18 Jun 2022 18:42:53 -0700 (PDT) Received: from localhost ([208.167.237.62]) by smtp.gmail.com with ESMTPSA id t10-20020a37ea0a000000b006a8b6848556sm8529892qkj.7.2022.06.18.18.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jun 2022 18:42:53 -0700 (PDT) From: Ihor Radchenko To: David =?utf-8?Q?Luke=C5=A1?= Cc: emacs-orgmode@gnu.org Subject: Re: oc-basic: CSL-JSON year as number vs. string (nativecomp?) In-Reply-To: References: Date: Sun, 19 Jun 2022 09:44:02 +0800 Message-ID: <87h74h4ecd.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=yantar92@gmail.com; helo=mail-qk1-x72a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655603031; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=yrj7YL39RQRTaDUQsOlw9iDcXW1kllmYitBO9TcbUhE=; b=s9XphRtB3rd5eWpsUafmMNPLzHIc71O2BkOZoialsqRANhTLM79XqaLS7+c3W0Vqa9Faf4 TT8AxalZ/WpjP+AXNbkawlt5BdGD24IzIJLrne4RANS02s8CEk8wLFJJfqYmOq4+8e39/s v/ZGK8saWxRpZnVoTr288MAl1ScEz2v+6VeVZ5gxrxrBy3sE22eewHC7OCHeNKKBnceM59 0v8T8toqT6dGQtctW6y8gJbMQ+uA1VaVJRWTipGP5McMebrCD1XFOvh6RojW2TfXnP3qYq VIDhOXmCzse2pRpUedU74FiPN7MiZN/gy3uYnutjWmtJfHVsL0Xqu7GTSd5Y3A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655603031; a=rsa-sha256; cv=none; b=V+f7CMV1MX692I9c3PSlZLmmSOPMhfDBnstwxHYfVDd9N3vTPQLyJBU/aMxID7xdpCPYtC XYFGaAcK8a0pjXoGp/4+kqoF8ofTxKqRB7nQ0FQZiOI7silWJ2UEWCtpYOXGp6WnDvqbTD /81lwnJKoYhaADhHoi3gep6x2MXQ2dmiUk5J6jhXMWE+D4BXgd/ZYMTprxV2NC0YIzafEY 6zourDqAya3UqAF3P9Y1P+svXtOCfdHrrvCOyREStYr23Al+18Fcg2CidJkDwqCN5Iqvip VCh6MKTrbwHG2K+6kBE17bCxk5tl91Z2T/xuGXneRI4CrlNhNDm0dyhhUAZXJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mHKOTptA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.99 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mHKOTptA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5DDD89637 X-Spam-Score: -6.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: VjswAWDJWpAO David Luke=C5=A1 writes: > I recently started to get errors like the following: > > Error during redisplay: (jit-lock-function 544) signaled > (wrong-type-argument "Argument is not a string or a secondary string: > 2007") > > This patch makes them go away: > > - (caar date)) > + (number-to-string (caar date))) Can you provide an example json file demonstrating the problem? I suspect that multiple json formats may be available in the wild. Some parsed as a list of strings and some parsed as a list of numbers. You patch may fix the former but break the latter. Best, Ihor