Skip to content

Instantly share code, notes, and snippets.

@JVanloofsvelt
JVanloofsvelt / A README.md
Created June 26, 2022 13:39 — forked from AndreasAmMueller/A README.md
FIX: Localised number format and wrong input type for decimal fields

As Microsoft is not capable of fixing an issue, which influences most of the non-english-speaking world, here is a possible fix until they've seen the urgent priority for this to be solved.

Startup.cs:

public void ConfigureServices {
	// [...]
	
	services.AddControllersWithViews(options =>
	{
 options.ModelBinderProviders.Insert(0, new CustomFloatingPointModelBinderProvider());
@JVanloofsvelt
JVanloofsvelt / lektor_installer.py
Last active September 12, 2020 08:36
A modified Lektor installer.py to fix the installation on Windows systems with older Python versions.
#!/usr/bin/env python
from __future__ import print_function
import math
import os
import shutil
import sys
import tempfile
from subprocess import call
from packaging import version