minetest-mods / skinsdb

Player skin mod, supporting unified_inventory, sfinv and smart_inventory
27 stars 41 forks source link

Update skins_updater.lua for all systems #47

Closed SunsBR closed 4 years ago

SunsBR commented 4 years ago

The base64 data from the decoder to the file writer is in binary, using only the "w" flag would work in most unix systems but its incorrect and for all systems with crazy line_feed/Carrier_return or any character conversion the right way to save a binary data is using the "wb" flag.

This will fix the corrupted data for png files in windows systems and locales with character conversions.