diff options
author | Rickard Green <[email protected]> | 2017-06-14 13:23:34 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2017-06-14 13:24:45 +0200 |
commit | bdc0f3504fb13f777a7cc826caa5fd10dc6fc291 (patch) | |
tree | af70122a1bbc61caf5e56bb956c1207562d8856c /erts/emulator/beam | |
parent | b3a234b9f22990cbd1fd7add092a631b461ee7a4 (diff) | |
download | otp-bdc0f3504fb13f777a7cc826caa5fd10dc6fc291.tar.gz otp-bdc0f3504fb13f777a7cc826caa5fd10dc6fc291.tar.bz2 otp-bdc0f3504fb13f777a7cc826caa5fd10dc6fc291.zip |
Introduce minor vsn 2 in term_to_binary/2
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/external.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/emulator/beam/external.c b/erts/emulator/beam/external.c index 06213daa67..95275847f8 100644 --- a/erts/emulator/beam/external.c +++ b/erts/emulator/beam/external.c @@ -1129,8 +1129,10 @@ BIF_RETTYPE term_to_binary_2(BIF_ALIST_2) case 0: flags = TERM_TO_BINARY_DFLAGS & ~DFLAG_NEW_FLOATS; break; - case 1: + case 1: /* Current default... */ flags = TERM_TO_BINARY_DFLAGS; + case 2: + flags = TERM_TO_BINARY_DFLAGS | DFLAG_UTF8_ATOMS; break; default: goto error; |