let input_po chn =
let lexbuf = Lexing.from_channel chn
in
try
GettextPo_parser.msgfmt GettextPo_lexer.token lexbuf
with
Parsing.Parse_error ->
raise (PoInvalidFile ("parse error",lexbuf,chn))
| Failure(s) ->
raise (PoInvalidFile (s,lexbuf,chn))
| PoInconsistentMerge(str1,str2) ->
raise (PoInconsistentMerge(str1,str2))