Linear codes and modular curves