aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-06-14 13:23:34 +0200
committerRickard Green <[email protected]>2017-06-14 13:24:45 +0200
commitbdc0f3504fb13f777a7cc826caa5fd10dc6fc291 (patch)
treeaf70122a1bbc61caf5e56bb956c1207562d8856c /erts/emulator
parentb3a234b9f22990cbd1fd7add092a631b461ee7a4 (diff)
downloadotp-bdc0f3504fb13f777a7cc826caa5fd10dc6fc291.tar.gz
otp-bdc0f3504fb13f777a7cc826caa5fd10dc6fc291.tar.bz2
otp-bdc0f3504fb13f777a7cc826caa5fd10dc6fc291.zip
Introduce minor vsn 2 in term_to_binary/2
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/external.c4
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;