[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#48228: json-serialize should signal error when dll is not found [MS
From: |
Eli Zaretskii |
Subject: |
bug#48228: json-serialize should signal error when dll is not found [MS Windows] |
Date: |
Tue, 04 May 2021 20:42:18 +0300 |
> Cc: Eli Zaretskii <eliz@gnu.org>, p.stephani2@gmail.com, 48228@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Tue, 4 May 2021 19:59:15 +0300
>
> On 04.05.2021 19:43, Robert Pluim wrote:
> > What makes it error-prone? Those existing testing functions (on
> > Windows) attempt to load the relevant DLL's using the exact same
> > mechanisms as the actual code, so the failure (and success) modes are
> > identical.
>
> When somebody write code using json-serialize, and it can't do what it
> was asked to do, it should raise an error.
>
> I have code like this in a separate project:
>
> (cond ((fboundp 'json-parse-buffer)
> (json-parse-buffer
> :array-type 'list
> :object-type 'alist
> :null-object nil))
> (t
> (let ((json-array-type 'list))
> (json-read))))
>
> It has been there for a couple of years. And only now I find out that it
> can fail on MS Windows, because that failure is not reproducible on any
> other platform.
How is that different from similar code that relies on, say, librsvg
to display SVG images?
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Dmitry Gutov, 2021/05/04
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Philipp Stephani, 2021/05/04
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Dmitry Gutov, 2021/05/04
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Eli Zaretskii, 2021/05/04
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Dmitry Gutov, 2021/05/04
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Robert Pluim, 2021/05/04
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Dmitry Gutov, 2021/05/04
- bug#48228: json-serialize should signal error when dll is not found [MS Windows],
Eli Zaretskii <=
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Dmitry Gutov, 2021/05/04
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Eli Zaretskii, 2021/05/04
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Dmitry Gutov, 2021/05/05
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Nikolay Kudryavtsev, 2021/05/06
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Eli Zaretskii, 2021/05/06
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Nikolay Kudryavtsev, 2021/05/06
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Eli Zaretskii, 2021/05/06
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Nikolay Kudryavtsev, 2021/05/06
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Eli Zaretskii, 2021/05/06
- bug#48228: json-serialize should signal error when dll is not found [MS Windows], Nikolay Kudryavtsev, 2021/05/06