[Carleson theorem][1] (later extended by Hunt) states that given an $L^2$ function $f:{\mathbb R}/{\mathbb Z}\to{\mathbb C}$, the set of points $x$ where the Fourier series $$\lim_{n\to\infty}\sum_{k=-n}^n\hat f(k)e^{2\pi ik x}$$ does not converge to $f(x)$ has measure 0. Kahane and Katznelson [proved][2] that given any measure zero set $E$ there is a continuous function $f:{\mathbb R}/{\mathbb Z}\to{\mathbb C}$ whose Fourier series diverges at all points of $E$. These two results leave a little gap. What is known about those sets $E$ for which there is an $L^2$ (or even continuous?) function $f$ whose Fourier series diverges at all points of $E$ and pointwise converges to $f$ at all points not in $E$? Let me point out that *not* every measure zero set can be such an $E$. If $f$ is continuous, this is easy to see; in fact, $E$ must be Borel (of low complexity; and this of course seems related to [this question][3]). As pointed out below in a comment by Juris Steprans, just on cardinality grounds we know not every measure zero set can appear, even for $L^2$ functions. Hunt's extension of Carleson's result says that we may assume $f\in L^p$ for any $p\in(1,\infty)$; I do not even know whether the sets $E$ will vary with $p$. [1]: http://www.ams.org/mathscinet-getitem?mr=0199631 [2]: http://www.ams.org/mathscinet-getitem?mr=0199633 [3]: http://mathoverflow.net/questions/49395/behaviour-of-power-series-on-their-circle-of-convergence/