Pure Erlang implementation of 9p2000 protocol
filesystem fs 9p2000 erlang 9p

Printable charlists should be formatted as values without quotes

hauleth.dev 46d43ea4 d6344561

verified
+5 -1
+5 -1
src/e9p_sysfs.erl
··· 126 126 Key = binary_to_atom(KeyB), 127 127 Data = case erlang:system_info(Key) of 128 128 Val when is_binary(Val) -> Val; 129 - Val -> iolist_to_binary(io_lib:format("~p", [Val])) 129 + Val -> 130 + case io_lib:printable_list(Val) of 131 + true -> unicode:characters_to_binary(Val); 132 + false -> iolist_to_binary(io_lib:format("~p", [Val])) 133 + end 130 134 end, 131 135 {ok, {Data, 0}, State}; 132 136 %% ===== Processes =====