HARRISBURG, Pennsylvania — Gov. Tom Corbett said Wednesday that he would be willing to sign legislation to outlaw discrimination based on someone's sexual orientation or gender identity, but he was unprepared to say what he will do, if anything, to try to dislodge such bills that have thus far languished in the Republican-controlled Legislature.