Is $$f(x)=\begin{cases} \ \ \ \ \ \ \ \ \ x,\ \ \ \ x\in C \\ \frac{1}{x}\sin x, \ \ \ \ x\in[0,1]\setminus C\end{cases}$$ Lebesgue-integrable?
I honestly don't know how to prove this. I have the definition that a function $f$ is Lebesgue integrable if there exists a sequence of simple functions $\varphi_n(x)$ such that $\varphi_n(x)< f$ and $\varphi_n \to f, n\to \infty.$
$C$ is indeed, the Cantor set.
If $g\in C([0,1]),$ then $g$ is the uniform limit of step functions that stay below $g$ on $[0,1].$ And step functions are simple functions. So we can find simple functions $s_n$ such that $s_n(x) \to x$ on $[0,1]$ as above, and similarly we can find simple functions $t_n$ such that $t_n(x) \to (\sin x)/x$ on $[0,1].$ The functions $s_n\cdot \chi_C + t_n\cdot \chi{[0,1]\setminus C},$ which are simple functions, then converge to your $f$ in the desired manner.