W.Rudin in his book "Principles of MA" defines Fourier coefficients by $(62)$ i.e. $$c_m=\dfrac{1}{2\pi}\int _{-\pi}^{\pi}f(x)e^{-imx}dx \qquad (62)$$ But in 8.10 Definiton for orthonormal system $\{\phi_n(x)\}$ on $[a,b]$ he defines Fourier coefficients by $(66)$ i.e. $$c_n=\int _{a}^{b}f(t)\overline{\phi_n(t)}dt \qquad (66)$$ But we know that system $\left\{\dfrac{e^{inx}}{\sqrt{2\pi}}\right\}_{n\in \mathbb{Z}}$ is orthonormal on $[-\pi,\pi]$ and putting this into $(66)$ we get that $c_n=\dfrac{1}{\sqrt{2\pi}}\int \limits_{-\pi}^{\pi}f(t)e^{-int}dt$ and this does not coincide with $(62)$
Can anyone explain this confusing moment please?
He, too, appears to be confused by the mutually incompatible definitions in the literature. Interestingly, in chapter 7 of his book "Functional Analysis" he solves the problem by redefining Lebesgue measure. The normalized Lebesgue measure on $\mathbb R^n$ is the measure $m_n$ defined by
$$dm_n(x)=(2\pi)^{-n/2}dx.$$