--
You received this message because you are subscribed to a topic in the Google Groups "lua-l" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lua-l/Ntf0jVaZe5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/gTZBKMh7yCma5V7l8KARpeVSj3FCV5MJ3zbGGHlqdR599AxcVDG2bkhAsaqryfEZznyLQuqTazO1kf6RMRd0HtkSDSUXrl_MvryNqeWT8lM%3D%40calamity.inc.
OK, I have checked a bit more in the addquoted procedure but I can only see that it explicitly handles control characters and everything else is passed straight through. Do characters between 128 and 255 also count as control characters as well here? And all the control characters are transformed to '\\d` sequence of either `\\d' or '\\ddd` which is not what quite what is happening in the transformations of the large bytes which I see. Or have I misunderstood the 'C'?Robert
--
You received this message because you are subscribed to a topic in the Google Groups "lua-l" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lua-l/Ntf0jVaZe5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lua-l+un...@googlegroups.com.
x = '"ílo"\n\\'
assert(load(string.format('return %q', x))() == x)
To view this discussion visit https://groups.google.com/d/msgid/lua-l/df147839-da8f-438b-a598-f6e60ddc203cn%40googlegroups.com.
string.lua
test suite." If this helps,I remember this, this is from testes/strings.lua, right? That file is using ISO Latin encoding as opposed to UTF-8. Roughly speaking, strings in Lua represent exactly the bytes that are in between the quotes, so if the file is encoded differently, the string will contain different data.
-- Sainan
--
You received this message because you are subscribed to a topic in the Google Groups "lua-l" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lua-l/Ntf0jVaZe5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lua-l+un...@googlegroups.com.
> The following characters are considered control characters according to the
> C90 standard:
>
> 005 ENQ 006 ACK 007 BEL 010 BS 011 HT
> 012 NL 013 VT 014 NP 015 CR 016 SO
> 017 SI 020 DLE 021 DC1 022 DC2 023 DC3
> 024 DC4 025 NAK 026 SYN 027 ETB 030 CAN
> 031 EM 032 SUB 033 ESC 034 FS 035 GS
> 036 RS 037 US 177 DEL
I all could find in the C99 standard as a definition for control
character whas this: "the term *control character* refers to a
member of a locale-specific set of characters that are not printing
characters. All letters and digits are printing characters." (7.4.3) The
key point here is "locale-specific": Different locales can result in
different behaviors for "%q".
cntrl <alert>;<backspace>;<tab>;<newline>;<vertical-tab>;\
<form-feed>;<carriage-return>;\
<NUL>;<SOH>;<STX>;<ETX>;<EOT>;<ENQ>;<ACK>;<SO>;\
<SI>;<DLE>;<DC1>;<DC2>;<DC3>;<DC4>;<NAK>;<SYN>;\
<ETB>;<CAN>;<EM>;<SUB>;<ESC>;<IS4>;<IS3>;<IS2>;\
<IS1>;<DEL>
Source:
The rationale for this behavior is that "printing charaters" are printed
as themselves; the others are encoded.
-- Roberto
--
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/20250602161523.GA708730%40arraial.inf.puc-rio.br.
You received this message because you are subscribed to a topic in the Google Groups "lua-l" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lua-l/Ntf0jVaZe5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/CAGj8prjMkkPwNSMUUDzSEXY8_uzyK2j3J3O%3DX9ETQ-Rm-jJ2yA%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "lua-l" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lua-l/Ntf0jVaZe5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/CA%2BbJJbxdTJe%2BLBOyjXqwBjiC5OMCL_LPo_ZSk%3DKLiAxWj9qYJg%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "lua-l" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lua-l/Ntf0jVaZe5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/04e93d5d-e524-4f74-9960-6a8edc6f9ee8%40blueyonder.co.uk.
--
You received this message because you are subscribed to a topic in the Google Groups "lua-l" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lua-l/Ntf0jVaZe5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lua-l+un...@googlegroups.com.
Must be very hard writing software if you never save a file. :D
-- Sainan
--
You received this message because you are subscribed to a topic in the Google Groups "lua-l" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lua-l/Ntf0jVaZe5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lua-l+un...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "lua-l" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lua-l/Ntf0jVaZe5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lua-l+un...@googlegroups.com.
Hmm, I'd call that "binary".
-- Sainan
--
You received this message because you are subscribed to a topic in the Google Groups "lua-l" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lua-l/Ntf0jVaZe5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lua-l+un...@googlegroups.com.