File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -1147,16 +1147,11 @@ to the same value.
1147
1147
1148
1148
## ` maxBuffer ` and Unicode
1149
1149
1150
- It is important to keep in mind that the ` maxBuffer ` option specifies the
1151
- largest number of * octets* allowed on ` stdout ` or ` stderr ` . If this value is
1152
- exceeded, then the child process is terminated. This particularly impacts
1153
- output that includes multibyte character encodings such as UTF-8 or UTF-16.
1154
- For instance, the following will output 13 UTF-8 encoded octets to ` stdout `
1155
- although there are only 4 characters:
1156
-
1157
- ``` js
1158
- console .log (' 中文测试' );
1159
- ```
1150
+ The ` maxBuffer ` option specifies the largest number of bytes allowed on ` stdout `
1151
+ or ` stderr ` . If this value is exceeded, then the child process is terminated.
1152
+ This impacts output that includes multibyte character encodings such as UTF-8 or
1153
+ UTF-16. For instance, ` console.log('中文测试') ` will send 13 UTF-8 encoded bytes
1154
+ to ` stdout ` although there are only 4 characters.
1160
1155
1161
1156
[ `'error'` ] : #child_process_event_error
1162
1157
[ `'exit'` ] : #child_process_event_exit
You can’t perform that action at this time.
0 commit comments