Avoid assertion failure pasting from a dictionary with foreign encoding.
[pspp-builds.git] / src / data / dictionary.c
index f3c76c6e6d25bdf1c67b2796c2934295ee5be881..155d4bf4328501f07c7f7bebcfabb89883d3146a 100644 (file)
@@ -386,7 +386,7 @@ dict_lookup_var (const struct dictionary *d, const char *name)
   struct variable *target ;
   struct variable *result ;
 
-  if ( ! var_is_valid_name (name, false))
+  if ( ! var_is_plausible_name (name, false))
     return NULL;
 
   target = var_create (name, 0);