20170822 business.international-business: TSX ends flat as miner gains offset weaker energy