Closed xmrstickers closed 1 year ago
test: hello = pm.gui_text_box(posX=20, posY=30, width=50, height=30, text="hello", id=0) print(len(hello)) expected: 5; returns: 205 temporary workaround: hello = hello.rstrip('\x00')
hello = pm.gui_text_box(posX=20, posY=30, width=50, height=30, text="hello", id=0)
print(len(hello))
hello = hello.rstrip('\x00')
https://github.com/qb-0/pyMeow/blob/26f3ef161d7bf494cd4498a5dd45ab4e06b9a2d5/src/gui.nim#L95
I know nothing about nim, but it looks to be appending 200 null bytes to the given value - (some more info in discord when I first discovered bug)
test:
hello = pm.gui_text_box(posX=20, posY=30, width=50, height=30, text="hello", id=0)
print(len(hello))
expected: 5; returns: 205 temporary workaround:hello = hello.rstrip('\x00')
https://github.com/qb-0/pyMeow/blob/26f3ef161d7bf494cd4498a5dd45ab4e06b9a2d5/src/gui.nim#L95
I know nothing about nim, but it looks to be appending 200 null bytes to the given value - (some more info in discord when I first discovered bug)