Comedian Bill Cosby and prosecutors who accuse him of sexually assaulting a former staffer at his alma mater Temple University are due in a Pennsylvania court on Thursday for rulings on issues including what witnesses may speak at his retrial next month.