-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Understanding skip = "auto"
with serializeVersion = 3
#201
Comments
Interesting. I suspect that this is related to the long (and for its OP, frustrating) discussion in #200. At the end of the day, So if and when you are in situations where the raw bytes from Recall in the different locales we may indeed be handed different strings from R by our own choices so seeing a difference strikes as quite plausible. $ Rscript -e 'cat(serialize(1L, NULL, TRUE, version=3), "\n")'
41 0a 33 0a 32 36 32 39 31 34 0a 31 39 37 38 38 38 0a 35 0a 55 54 46 2d 38 0a 31 33 0a 31 0a 31 0a
$ LANG="C" Rscript -e 'cat(serialize(1L, NULL, TRUE, version=3), "\n")'
41 0a 33 0a 32 36 32 39 31 34 0a 31 39 37 38 38 38 0a 31 34 0a 41 4e 53 49 5f 58 33 2e 34 2d 31 39 36 38 0a 31 33 0a 31 0a 31 0a
$ If you use |
Thanks for explaining. |
We could possibly set up a more 'discerning digest' that strips what it cans. Might be worth discussing. I of course see why But I don't right now see a way to strip something like PS One added complication is that some environment variables that govern the process are hard / impossible to alter once the process (for us: the R session) is running. Hm. |
I'm afraid I don't understand enough about what's happening at this depth, but in |
Yes customizing consumption of what comes from Note that I have 'borrowed' a snapshot of serialization API already in |
With
digest
version 0.6.34 and serialization version 3, @shikokuchuo observed that hashes on the same object may differ for different locales:@shikokuchuo figured out that the extra headers from serialization V3 are hashed along with the contents of the object. (So the hashes agree if
serialization = 2
orskip = 23
.)It would be nice to understand this choice for the default
skip = "auto"
. I am not sure if this is really adigest
issue because of how it relates toserialize()
.The text was updated successfully, but these errors were encountered: