?- current_prolog_flag(double_quotes, V).
V = chars ? ;
no
?- writeq("a").
[97] % unexpected - expected [a]
yes
?- set_prolog_flag(double_quotes, codes).
no, unexpected.
The flag double_quotes was introduced by ISO as a changeable flag in 7.11.2.5 meaning (6.3.7):
If the Prolog flag double_quotes has a value chars, a
double quoted list token dql containing L double
quoted characters is a list l with L elements, where
the N-th element of the list is the one-char atom whose
name is the N-th double quoted character of dql.
....