AkarinVS / vapoursynth-plugin

My experimental VapourSynth plugin: (1) an enhanced LLVM-based std.Expr (aka lexpr), Select, PropExpr, Text and Tmpl. (2) DLISR. (3) DLVFX (4) CAMBI.
GNU Lesser General Public License v3.0
37 stars 8 forks source link

Expr: inconsistent locale float parsing #21

Closed Setsugennoao closed 1 year ago

Setsugennoao commented 1 year ago

@cid-chan found this issue working on nix running my code, I can't reproduce on windows and have no pc with linux to test.

She however runs into this issue even with a simple float, so it seems it's not surrounding stuff 🤔

Traceback (most recent call last):
  ...
    base.akarin.Expr("4.376").set_output(1)
  File "src/cython/vapoursynth.pyx", line 2565, in vapoursynth.Function.__call__
vapoursynth.Error: Expr: failed to convert '4.376' to float, not the whole token could be converted

EDIT: Apparently the issue is locale... base.akarin.Expr("4,376") works???

Thanks!