Without additional packages. These macros correct width of a box with a slanted entry.
\documentclass{article}
\begin{document}
\newdimen\slantmathcorr
\def\oversl#1{%assuming that mathslant=0.25
\setbox0=\hbox{$#1$}
\slantmathcorr=\wd0
\hskip 0.2\slantmathcorr \overline{\hbox to 0.8\wd0{%
\vphantom{\hbox{$#1$}}}}
\hskip-\wd0\hbox{$#1$}
}
\def\undersl#1{%assuming that mathslant=0.25
\setbox0=\hbox{$#1$}
\slantmathcorr=\wd0
\underline{\hbox to 0.8\wd0{%
\vphantom{\hbox{$#1$}}}}
\hskip-0.8\wd0\hbox{$#1$}
}
\[
\left[\underline{x},\bar{x}\right]
\]
\[
\left[\underline{t},\bar{t}\right]
\]
Corrected:
\[
\left[\undersl{x},\oversl{x}\right]
\]
\[
\left[\undersl{t},\oversl{t}\right]
\]
\end{document}

And once again in the version requested by OP. It can produce some side-effects.
\documentclass{article}
\begin{document}
\let\oldbar\bar
\let\oldunderline\underline
\let\oldoverline\overline
\newdimen\slantmathcorr
\def\oversl#1{%assuming that mathslant=0.25
\setbox0=\hbox{$#1$}
\slantmathcorr=\wd0
%\hskip 0.2\slantmathcorr \overline{\hbox to 0.8\wd0{%
\hskip 0.2\slantmathcorr \oldoverline{\hbox to 0.8\wd0{%
\vphantom{\hbox{$#1$}}}}
\hskip-\wd0\hbox{$#1$}
}
\def\undersl#1{%assuming that mathslant=0.25
\setbox0=\hbox{$#1$}
\slantmathcorr=\wd0
%\underline{\hbox to 0.8\wd0{%
\oldunderline{\hbox to 0.8\wd0{%
\vphantom{\hbox{$#1$}}}}
\hskip-0.8\wd0\hbox{$#1$}
}
\[
\left[\underline{x},\bar{x}\right]
\]
\[
\left[\underline{t},\bar{t}\right]
\]
Corrected:
\[
\left[\undersl{x},\oversl{x}\right]
\]
\[
\left[\undersl{t},\oversl{t}\right]
\]
\let\bar\oversl
\let\underline\undersl
\[
\left[\underline{x},\bar{x}\right]
\]
\[
\left[\underline{t},\bar{t}\right]
\]
\end{document}
overlineinstead ofbar? – Raphael Nov 08 '13 at 22:34