2018-10-19
___I_m_p_r_o_v_e_m_e_n_t_s__t_o__s_m_a_l_l_t_a_l_k__g_o_p_h_e_r______
Hey! I have been exploring Smalltalk a little bit more and found some
weird legacy stuff, one being internal encoding. Turns out that
Squeak uses MacRoman (of all possible encodings!) as an internal
encoding and while you can specify an external encoding for files and
FilePaths… but you need to explicitly specify a conversion when you
use the bytes for displaying for example.
So to make a long story short, a simple #utf8ToSqueak added to the
message for reading in the data has made this work.
I have also included a subclass for a SocksSocket that will route
through the local tor socks proxy.
So grab the latest monticello package[0] and enjoy a little gopher
client in Smalltalk.
Start with:
b:= GopherBrowser new
Go to a page directly with:
b url: '
gopher://blackgviz2y4nhrd.onion'
As a side note: If you want to use the compose key to enter unicode
stuff, set LC_ALL and it will get enabled in the VM... It is buried
in the man page and it took me a while to find that.
___References________________________________________________________
[0]:
gopher://vernunftzentrum.de/1/ckeen/gopher-smalltalk