diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2010-09-08 18:53:53 +0100 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-09-08 18:53:53 +0100 |
| commit | f5bd73d2cee785e03ceda2833b0a8b9006cacf6d (patch) | |
| tree | 202de85b9168682c0dfb6b490608f92c3d8008f7 /src | |
| parent | 58247f3f6b48f98f615b85578f7c83e6ec340cfe (diff) | |
| download | rabbitmq-server-git-f5bd73d2cee785e03ceda2833b0a8b9006cacf6d.tar.gz | |
handle chars > 127
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_control.erl | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl index 11969eb564..2d81ae2743 100644 --- a/src/rabbit_control.erl +++ b/src/rabbit_control.erl @@ -339,16 +339,10 @@ format_info_item([{TableEntryKey, TableEntryType, _TableEntryValue} | _] = Value) when is_binary(TableEntryKey) andalso is_atom(TableEntryType) -> io_lib:format("~1000000000000p", [prettify_amqp_table(Value)]); +format_info_item([C|_] = Value) when is_number(C), C >= 32, C =< 255 -> + Value; format_info_item(Value) -> - case is_string(Value) of - true -> Value; - false -> io_lib:format("~w", [Value]) - end. - -is_string([C|_]) when is_number(C), C >= 32, C < 127 -> - true; -is_string(_) -> - false. + io_lib:format("~w", [Value]). display_list(L) when is_list(L) -> lists:foreach(fun (I) when is_binary(I) -> |
