Skip to content
Little GolemMake your next move.

SGF bug: unescaped characters in player names

Public forum discussion.

General

#1 · Ignatius J Reilly

18 Nov 2011

In SGF, the character ']' has special meaning, so when it appears in a string it should be escaped, i.e. '\]'. This problem arises when player names contain ']'. For example, there is a player "Shumacher;]", and the SGF for one of his/her games begins like

(;FF[4]EV[hex19.mc.2011.jul.2.1]PB[Rottcodd]PW[Shumacher;]]SZ[19]GC[ game #1380501]SO[http://www.littlegolem.com];W[ak];B[swap];W[jf] ........

This is unparseable, and should instead be

(;FF[4]EV[hex19.mc.2011.jul.2.1]PB[Rottcodd]PW[Shumacher;\]]SZ[19]GC[ game #1380501]SO[http://www.littlegolem.com];W[ak];B[swap];W[jf] ........

#2 · MarleysGhost

19 Nov 2011

I think you'll have to adapt, because no one is going to stop this error. Kinda like global warming.