ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* non-ascii chars in cmd.exe (Windows)
@ 2020-11-12 21:39 Pablo Rodriguez
  2020-11-12 21:55 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2020-11-12 21:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample:

  \starttext
  \startluacode
  io.write(' Name? ')
  document.name = io.read() or ''
  \stopluacode
  \cldcontext{document.name} is the name.
  \stoptext

Running it on Linux, I can input non-ascii characters.

When running in Windows, if the input chars contains a non-ascii one,
document.name is empty.

I have no problem passing arguments from cmd with Unicode characters
(such as in '--arguments="name={αβγ}"'.

I’m using current latest (ConTeXt MkIV 2020.11.08 12:42).

I’m not sure what I am missing or whether I have hit a bug.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-13 20:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-12 21:39 non-ascii chars in cmd.exe (Windows) Pablo Rodriguez
2020-11-12 21:55 ` Hans Hagen
2020-11-13 13:49   ` Pablo Rodriguez
2020-11-13 14:15     ` Hans Hagen
2020-11-13 20:01       ` Pablo Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).