소스 검색

v.db.select: fix sep=newline

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56593 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 년 전
부모
커밋
76e0bca924
1개의 변경된 파일2개의 추가작업 그리고 11개의 파일을 삭제
  1. 2 11
      vector/v.db.select/main.c

+ 2 - 11
vector/v.db.select/main.c

@@ -128,17 +128,8 @@ int main(int argc, char **argv)
     }
 
     /* the field separator */
-    fs = fs_opt->answer;
-/* FIXME: malloc() or G_store() needed for *fs since the sep can be multiple chars? */
-    if (strcmp(fs, "\\t") == 0)
-        fs = "\t";
-    if (strcmp(fs, "tab") == 0)
-        fs = "\t";
-    if (strcmp(fs, "space") == 0)
-        fs = " ";
-    if (strcmp(fs, "comma") == 0)
-        fs = ",";
-
+    fs = G_option_to_separator(fs_opt);
+    
     db_init_string(&sql);
     db_init_string(&value_string);