File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 88// SPDX-License-Identifier: MIT
99//
1010
11- use plib:: { run_test, run_test_u8, TestPlan , TestPlanU8 } ;
11+ use plib:: testing :: { run_test, run_test_u8, TestPlan , TestPlanU8 } ;
1212
1313fn tr_test_binary ( args : & [ & str ] , test_data : & [ u8 ] , expected_output : & [ u8 ] ) {
1414 let str_args = args
Original file line number Diff line number Diff line change 11use clap:: Parser ;
22use gettextrs:: { bind_textdomain_codeset, setlocale, textdomain, LocaleCategory } ;
3- use plib:: PROJECT_NAME ;
43use setup:: { ForRemoval , ForTranslation } ;
54use std:: error:: Error ;
65use std:: process;
@@ -290,8 +289,8 @@ fn tr(args: &Args) -> Result<(), Box<dyn std::error::Error>> {
290289
291290fn main ( ) -> Result < ( ) , Box < dyn Error > > {
292291 setlocale ( LocaleCategory :: LcAll , "" ) ;
293- textdomain ( PROJECT_NAME ) ?;
294- bind_textdomain_codeset ( PROJECT_NAME , "UTF-8" ) ?;
292+ textdomain ( env ! ( " PROJECT_NAME" ) ) ?;
293+ bind_textdomain_codeset ( env ! ( " PROJECT_NAME" ) , "UTF-8" ) ?;
295294
296295 let args = Args :: parse ( ) ;
297296
You can’t perform that action at this time.
0 commit comments